Not able to disable rpc services in rehat 7.0
- Not able to remove/edit/chmod /etc/xinet.d/rpc file
Not able to delete /usr/bin/rpc file.
error mesg as below:
[root@mail bin]# rm rpc
rm: remove write-protected file `rpc'? y
rm: cannot unlink `rpc': Operation not permitted
-rwxr-xr-x 1 root root 97093 Nov 30 09:17 rpc
[root@mail xinetd.d]# ls -la rpc
-rw-r--r-- 1 root root 266 Nov 30 15:48 rpc
- The Entity currently known as johnnytcyberwayc emitted:
>Not able to remove/edit/chmod /etc/xinet.d/rpc fileOn a Linux system, in addition to permissions, files can have
>Not able to delete /usr/bin/rpc file.
>error mesg as below:
>rm: cannot unlink `rpc': Operation not permitted
extended attributes. One of those attributes is the "immutable"
attribute, which if set makes the file unchangeable, _even_by_root_.
To reverse this, "chattr -i <filename>"
For further reading, see the man pages for chattr and lsattr
-=Brian L. Johnson, www.blj8.com=-
For PGP key email to: pgpkey@...
For Geekcode email to: geekcode@...