I iceuk626 Verified User Joined May 6, 2006 Messages 230 Location United Kingdom Feb 21, 2008 #1 Does anyone know what would cause permission denied when i try to modify/delete .bash_profile? Im am logged in as root.
Does anyone know what would cause permission denied when i try to modify/delete .bash_profile? Im am logged in as root.
G GXX Verified User Joined Mar 25, 2006 Messages 341 Feb 21, 2008 #2 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: Feb 21, 2008
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
I iceuk626 Verified User Joined May 6, 2006 Messages 230 Location United Kingdom Feb 22, 2008 #3 ls -al .bash_profile -rw-r--r-- 1 root root 966 Feb 20 13:25 .bash_profile Click to expand... LES is not installed
ls -al .bash_profile -rw-r--r-- 1 root root 966 Feb 20 13:25 .bash_profile Click to expand... LES is not installed
G GXX Verified User Joined Mar 25, 2006 Messages 341 Feb 22, 2008 #4 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: Feb 22, 2008
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.
I iceuk626 Verified User Joined May 6, 2006 Messages 230 Location United Kingdom Feb 22, 2008 #5 Cool thanx it works.