Thank you for your bug report. I think the effect you reported is
actually no bug.

This is from the manual page of Linux' chown system call (man 2 chown):

"When  the  owner  or  group of an executable file are changed by a 
non-superuser, the S_ISUID and S_ISGID mode bits are cleared. POSIX
does not specify whether this also should happen when root does the chown(); 
the Linux behaviour depends on the  kernel  version."

So for non-root users the s-bits get always cleared and for the root
user it depends on the kernel version.  The right thing to do in the
mentioned installation script would be to set the group first and set
the suid bit last.

That this installation script works under Fedora Core 4 probably means
that this behaviour (for root) changed in the kernel between FC4's
2.6.11 and Dapper's 2.6.15.

I will thus close the bug report as 'rejected'. If you still think this
is a bug which should be fixed in Ubuntu, please feel free to reopen
this bug. Thank you.

** Changed in: coreutils (Ubuntu)
       Status: Unconfirmed => Rejected

-- 
chgrp -R unsets suid
https://launchpad.net/bugs/56944

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to