On Sat, Jun 03, 2006 at 01:19:27PM +0200, Filippo Giunchedi wrote:
ha-ha! looks like it is a bug in chown (Cc'ing coreutils maintainers):

no, it isn't.

$ /bin/chmod u=rwxs,go=rx /usr/bin/netselect
$ ls -la /usr/bin/netselect
-rwsr-xr-x 1 root root 11984 2006-05-13 01:14 /usr/bin/netselect
$ /bin/chown root:root /usr/bin/netselect
-rwxr-xr-x 1 root root 11984 2006-05-13 01:14 /usr/bin/netselect

The chown should always be first, or you could be setting the binary suid to the wrong user. At any rate, changing the owner of a setuid file causes the kernel to clear the suid bit as a security measure.

Mike Stone



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to