.bash_profile permission denied

iceuk626

Verified User
Joined
May 6, 2006
Messages
261
Location
United Kingdom
Does anyone know what would cause permission denied when i try to modify/delete .bash_profile? Im am logged in as root.
 
Paste the output of:

Code:
ls -al .bash_profile

Also, check if you have LES installed. That may deny editing of your bash_profile.

If so:

Code:
les -da

Edit your file, then re-enable:

Code:
les -ea
 
Last edited:
Try this:

Code:
chattr -i .bash_profile

Then try and edit it.

PS: This unsets the file as immutable. You can check immutable status of a file by doing:

Code:
lsattr filename

If it display an 'i', then it's immutable.
 
Last edited:
Back
Top