sux, an enhancer for su

Steve Peltz peltz at cerl.uiuc.edu
Fri Apr 26 03:45:34 AEST 1991


In article <462 at frcs.UUCP> paul at frcs.UUCP (Paul Nash) writes:
>I recently hacked up a fairly trivial enhancer for `su', that allows
>members of group `wheel' to su at will _without_ needing the root
>password.

su on our system requires the real uid to be root to avoid being asked for
a password, so your program won't work. However, in those cases where it
WILL work, wouldn't the following one-line shell script do just as well?
Maybe there's a reason; maybe the "groups" command is Sun specific or
something...

Don't forget to change it to be owned by root and setuid and executable...

Sorry - not in shar format; why put in an extra 20 lines to wrap 2?

#!/bin/sh
groups | grep -s wheel && su $* || echo Sorry
--
Steve Peltz
Internet: peltz at cerl.uiuc.edu	PLATO/NovaNET: peltz/s/cerl



More information about the Alt.sources mailing list