home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
3
/
3240
< prev
next >
Wrap
Text File
|
1991-04-25
|
982b
|
27 lines
Newsgroups: alt.sources
From: peltz@cerl.uiuc.edu (Steve Peltz)
Subject: Re: sux, an enhancer for su
Message-ID: <1991Apr25.174534.13912@ux1.cso.uiuc.edu>
Date: Thu, 25 Apr 1991 17:45:34 GMT
In article <462@frcs.UUCP> paul@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@cerl.uiuc.edu PLATO/NovaNET: peltz/s/cerl