I have found a bug in chgrp (GNU fileutils) 4.0p.

When changing the group of a file that is has the suid bit set, it removes
the suid bit when changing the group.

Example:

# ls -l wrapper
-rwsrwxr-x    1 root     users       15035 Dec  1 13:24 wrapper
   ^ suid bit is set

# chgrp majordom wrapper

# ls -l wrapper
-rwxrwxr-x    1 root     majordom    15035 Dec  1 13:24 wrapper
   ^ suid bit was removed

This is clearly a bug as chgrp should only be modifying the group of a
file and not touching the permissions.

-- 
Matt Perry
[EMAIL PROTECTED]


_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to