cvs commit: src/usr.bin/su su.c
Peter Jeremy
PeterJeremy at optushome.com.au
Sun Jul 3 01:04:41 GMT 2005
On Mon, 2005-Jan-17 21:39:38 +0100, Pawel Jakub Dawidek wrote:
>On Mon, Jan 17, 2005 at 07:57:59PM +0000, Robert Watson wrote:
>+> If su(1) is run without an effective uid of 0, generate an error to
>+> the user indicating that su is not running setuid, which may help
>+> suggest to the user that it should be setuid, or should not be
>+> running from a file system mounted nosuid.
>
>Shouldn't this be done for every setuid utility? Why only su(1)?
su used to generate the message "Sorry" for all errors. Other
utilities will hopefully generate more meaningful error messages.
One option for the last point would be to include a check in
do_execve() that warns where the setuid/setgid bits are ignored
because the filesystem is mounted nosuid.
--
Peter Jeremy
More information about the cvs-src
mailing list