Editing /etc/profile ?

tony1234

Verified User
Joined
Jul 25, 2005
Messages
71
I wanted to change bash history # lines kept and tried to edit this file, but says permission denied.
-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?
 
Never mind, LES made that file immutable, so I changed it back temporarily as I made my changes.
 
What OS distribution are you using?

I have no problems editing /etc/profile while logged in as root.

Jeff
 
CentOS. But it wasn't that, when I installed LES from rfxnetworks, it changed the attributes to immutable, and I hadn't noticed. So I chattr'd it back temporarily to change it. So all is good now. Thanks for the response.
 
Back
Top