using "su" without keying in the password
Jean-Pierre Radley
jpr at dasys1.uucp
Mon Mar 26 07:44:42 AEST 1990
In article <1990Mar14.202740.5044 at neptune.UUCP> orr at neptune.UUCP (Rick Orr) writes:
> Is there a way to use the "su" command in a script and have the
> script supply the password, without it having to be typed.
> I have tried several ways without any success.
I believe the password routine in 'su' and elsewhere wants to read
/dev/tty. IOW, it insists on being interactive, for what would appear to
be security reasons.
Hence 'su' won't take the password from its standard input. Ergo, it won't
take it from a script.
--
Jean-Pierre Radley jpr at jpradley.uucp
New York, NY 72160.1341 at compuserve.com
More information about the Comp.unix.wizards
mailing list