[comp.sources.wanted] Source wanted

fox@daemen.uucp (Merlin) (10/08/87)

    I am looking for the source to sus.c.
    This program was just like su but also allowed a user
    to execute a command after the sus call.  i.e.   
        sus <user> <command>
    Of course passwd validation was needed.
    If someone has it could you e-mail it to me.

          	Tanks in adavance.

 			Dave Fox

UUCP : decvax!sunybcs!daemen!fox
       inhp4!kitty!daemen!fox

We all know there is a time and a place for everything,
the trick is to find out
which time goes with which place goes with which thing.

dank@cerebus.UUCP (Dan Kionka X5205) (10/13/87)

In article <1213@daemen.uucp> fox@daemen.uucp (Merlin) writes:
>
>    I am looking for the source to sus.c.
>    This program was just like su but also allowed a user
>    to execute a command after the sus call.  i.e.   
>        sus <user> <command>
>    Of course passwd validation was needed.
>    If someone has it could you e-mail it to me.

This can be done with a simple script:

	user=$1
	shift
	su $user << END
	$*
	END

A useful variation of this is a program we called "asroot" since it
allowed you to do a single command as root:

	su << END
	$*
	END