What's the problem with my file system? 

Newsgroups:  comp.os.linux.misc
Date:        Fri, 17 Oct 2003 23:51:21 GMT
> root# rm /etc/rc.d/init.d/xinetd -f
> rm: cannot remove `/etc/rc.d/init.d/xinetd': Operation not permitted
>
> root# ls -lF /etc/rc.d/init.d/xinetd
> -rwxr-xr-x    1 root     root     1617 Oct 12 19:51 /etc/rc.d/init.d/xinetd*

try with

lsattr /etc/rc.d/init.d/xinetd

man lsattr and man chattr will explain, what the commands do.

> In trying to solve the problem myself, I tried to fsck my root volume in
> single mode. However, after booting into single mode, and issuing
>
>         mount -o remount,ro /
>
> to remount the root fs in readonly mode, I was some what surprised to
> find out that the root is still in RW mode. It's unbelievable but it was
> true. I tried many times.

try 'mount -n -o remount,ro /' maybe mount wants to change /etc/mtab but can't so the remount fails. also do a 'echo $?' after the mount command so that you get the return status of 'mount'. if it is 0 the command succeeded, otherwise some error occurred.

armin walland

What's the problem with my file system? 

$ lsattr /etc/rc.d/init.d/xinetd
-u-ia--------- /etc/rc.d/init.d/xinetd

attributes for the files:

don't update atime (A), synchronous updates (S), append only (a), compressed (c), no dump (d), immutable (i), data journalling (j), secure deletion (s), and undeletable (u).

chattr = /etc/rc.d/init.d/xinetd
$ lsattr /etc/rc.d/init.d/xinetd
-------------- /etc/rc.d/init.d/xinetd