Path: utzoo!utgpu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!peltz From: peltz@cerl.uiuc.edu (Steve Peltz) Newsgroups: alt.sources Subject: Re: sux, an enhancer for su Message-ID: <1991Apr25.174534.13912@ux1.cso.uiuc.edu> Date: 25 Apr 91 17:45:34 GMT References: <462@frcs.UUCP> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: UIUC Computer-based Education Research Lab Lines: 20 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