cannot edit file as root with write permissions set?
NOTE: This is on a Redhat ES 2.1 Server
I am very, very confused. The file is a ColdFusion file in /home/httpd/www. I have permissions to edit the file.
[root@www www]# ls -lah Stuff.cfm
-rw-rw-r-- 1 mike mike 7.4k Jul 23 15:31 Stuff.cfm
The file system is also mounted as read-write.
[root@www www]# mount
/dev/cciss/c0d0p9 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/cciss/c0d0p5 on /home type ext3 (rw)
/dev/cciss/c0d0p2 on /home/httpd type ext3 (rw)
/dev/cciss/c0d0p8 on /opt type ext3 (rw)
/dev/cciss/c0d0p10 on /tmp type ext3 (rw)
/dev/cciss/c0d0p3 on /usr type ext3 (rw)
/dev/cciss/c0d0p7 on /var type ext3 (rw)
But I can't edit the file, when I open and do an insert operation in vi I get:
-- INSERT -- W10: Warning: Changing a readonly file
And when I try to save the file anyways with wq! I get:
"Stuff.cfm" E212: Can't open file for writing
Hit ENTER or type command to continue
Any clue what in the hell is going on? I didn't set this system up, I've inherited it. After some testing I've found that /etc/passwd and /etc/shadow do the same exact thing, even though I can edit them with root on seperate installations. Can't edit with PICO either. Hell, I can't even chmod the file:
[root@www www]# chmod +w ProgViewFundingOps.cfm
chmod: changing permissions of `ProgViewFundingOps.cfm': Operation not permitted
Last edited by Mishley; 08-04-2004 at 01:47 PM.