Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Sep 2005
Editing /etc/profile? Can't as root
-rw-r--r-- 1 root root 842 May 24 2004 /etc/profile
I am logged in as root (from su), but says permission denied. I have tried editing other root only files (with same permissions), and works ok?
Anyone know why root can't edit this file and some way around it?
Your filesystem isn't mounted read-only is it?
You could also try using 'su -' to change to the root user instead of 'su'.Linux user #126863 - see http://linuxcounter.net/
I wouldn't edit /etc/profile anyway. Your changes may get clobbered during certain updates.
Instead edit ~/.profile for the user(s).