cvs commit: src/usr.bin/su su.c
PeterJeremy at optushome.com.au
Tue Jan 18 00:28:23 PST 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.
More information about the cvs-src