Permission denied when starting .bashrc on ubuntu on windows

Gian-Andrea Heinrich

I wanted to add a path to my .bashrc file on Ubuntu on Windows. Since then, I get always:

/home/gian1312/.bashrc: Permission denied

I deleted all my changes. It did not help. Then I opened the .profile file to add the path there. --> Now I get:

/home/gian1312/.profile permission denied

I deleted all my changes. All edits were made by Notepad++ in Windows. I am looking for a solution for several days. Probably a reinstallation would help but as long as I do not know the reason I do not want to risk to face the same problem.

Best Regards and thanks a lot
Gian

Samit

The error simply says that permission denied. Since the question is not completely clear, the following things can be tried:

1) Check the permission of the file ".bashrc" and ".profile" and make sure it is 0644

2) Check the upper level directory permission (here the folder /home/gian1312) and make sure it is 0755.

3) If the first two are fine, then you need to check the permission of the "path" which you are trying to add and it should have enough permissions to be readable by the user "gian1312"

Editing the answer as per the below comment: To change the permissions, please run the below commands:

chmod 0755 /home/gian1312
chmod 0644 /home/gian1312/.bashrc
chmod 0644 /home/gian1312/.profile

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Permission denied when starting MySQL Server from MySQL Workbench in Ubuntu

From Dev

Permission denied when starting MySQL Server from MySQL Workbench in Ubuntu

From Dev

Bash on Ubuntu on Windows gives error "-bash: /home/user/.bashrc: Permission denied" on startup

From Dev

Permission to my ~/.bashrc denied

From Dev

"~/.bashrc: Permission denied" when opening mate-terminal

From Dev

Permission denied when starting spark Command line on AWS EMR cluster

From Dev

"Permission denied" when starting binary despite "rwx" priviledge

From Dev

When starting Dropbox IOError: [Errno 13] Permission denied

From Dev

"permission denied" when converting ubuntu.iso to ubuntu.img

From Dev

access to .bashrc is denied on WSL ubuntu

From Dev

Ubuntu root permission denied

From Dev

Ubuntu:Permission denied error

From Dev

Permission denied Ubuntu Server

From Dev

Ubuntu Local Network Share - Failed to mount Windows share: Permission denied

From Dev

Permission denied when browsing for files using Ubuntu 18.04

From Dev

'Permission denied' when running snap applications on Ubuntu 16.04 as a LDAP user

From Dev

Permission denied when I try to pair to a Bluetooth speaker on Ubuntu 14.04

From Dev

.git/config permission denied when trying to add remote on ubuntu

From Dev

Permission denied when setting values in sysctl on Ubuntu 12.04

From Dev

rsync permission denied when using rsync:// protocol between ubuntu servers

From Dev

.bashrc not executed when starting GitBash

From Dev

Permission denied when using mv in Windows 7 Cygwin

From Dev

PermissionError: [Errno 13] Permission denied gets thrown when starting the script in CGI, but not in bash

From Dev

Docker 'WARNING: permission denied' on ubuntu

From Dev

fopen Permission denied, Ubuntu, CodeIgniter

From Dev

Haskell removeDirectoryRecursive: permission denied on Windows

From Dev

Open a directory on Windows: 'Permission denied'

From Dev

Windows 7 permission denied error

From Dev

Selenium with Marionette on Windows: "Permission Denied"

Related Related

  1. 1

    Permission denied when starting MySQL Server from MySQL Workbench in Ubuntu

  2. 2

    Permission denied when starting MySQL Server from MySQL Workbench in Ubuntu

  3. 3

    Bash on Ubuntu on Windows gives error "-bash: /home/user/.bashrc: Permission denied" on startup

  4. 4

    Permission to my ~/.bashrc denied

  5. 5

    "~/.bashrc: Permission denied" when opening mate-terminal

  6. 6

    Permission denied when starting spark Command line on AWS EMR cluster

  7. 7

    "Permission denied" when starting binary despite "rwx" priviledge

  8. 8

    When starting Dropbox IOError: [Errno 13] Permission denied

  9. 9

    "permission denied" when converting ubuntu.iso to ubuntu.img

  10. 10

    access to .bashrc is denied on WSL ubuntu

  11. 11

    Ubuntu root permission denied

  12. 12

    Ubuntu:Permission denied error

  13. 13

    Permission denied Ubuntu Server

  14. 14

    Ubuntu Local Network Share - Failed to mount Windows share: Permission denied

  15. 15

    Permission denied when browsing for files using Ubuntu 18.04

  16. 16

    'Permission denied' when running snap applications on Ubuntu 16.04 as a LDAP user

  17. 17

    Permission denied when I try to pair to a Bluetooth speaker on Ubuntu 14.04

  18. 18

    .git/config permission denied when trying to add remote on ubuntu

  19. 19

    Permission denied when setting values in sysctl on Ubuntu 12.04

  20. 20

    rsync permission denied when using rsync:// protocol between ubuntu servers

  21. 21

    .bashrc not executed when starting GitBash

  22. 22

    Permission denied when using mv in Windows 7 Cygwin

  23. 23

    PermissionError: [Errno 13] Permission denied gets thrown when starting the script in CGI, but not in bash

  24. 24

    Docker 'WARNING: permission denied' on ubuntu

  25. 25

    fopen Permission denied, Ubuntu, CodeIgniter

  26. 26

    Haskell removeDirectoryRecursive: permission denied on Windows

  27. 27

    Open a directory on Windows: 'Permission denied'

  28. 28

    Windows 7 permission denied error

  29. 29

    Selenium with Marionette on Windows: "Permission Denied"

HotTag

Archive