[NCLUG] error message

Bryan Stillwell bryan at bokeoa.com
Mon Aug 6 16:06:29 MDT 2001


>[root at anvar kmblehm]# ls -l /usr/bin/top
>-r-sr-xr-x   1 518      518        266140 Mar  7  2000 /usr/bin/top
>[root at anvar kmblehm]# chmod 555 /usr/bin/top
>chmod: /usr/bin/top: Operation not permitted

Well, that's rather unusual.  Perhaps your root filesystem is readonly
or the file is set immutable.  Also why is the file ownership 518.518?

To check if the filesystem is read-only, run `cat /proc/mounts`, if it
says something like:

/dev/hda1 / ext2 ro 0 0


It's readonly and you'll have to probably fsck it and then remount it:

fsck -C /dev/hda1 && mount -o remount,rw /dev/hda1


You can find out if it's immutable by running lsattr on the file, but
I don't have much experience with immutable files, so you'll have to
read the man pages.

BTW, top is normally owned by root and set non-suid in my experiences,
so you're "ls" should look like:

-rwxr-xr-x    1 root     root        35888 Dec 10  2000 /usr/bin/top

or with 555 perms:

-r-xr-xr-x    1 root     root        35888 Dec 10  2000 /usr/bin/top


Bryan

-- 
  http://www.bokeoa.com/    | bryan at bokeoa.com
  GPG fingerprint: 3608 4610 8C08 B8EB 0970  9686 8A93 386C 6116 EFE2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.nclug.org/pipermail/nclug/attachments/20010806/f35089d8/attachment.pgp>


More information about the NCLUG mailing list