su howto

lux-integ lux-integ at btconnect.com
Sat Nov 7 11:33:07 PST 2009


Greetings,

I am wondering if there is a way to su to another user and pass the password 
to be read from a shell script?


I   think the command  may be of the form:- 

su  - otheruser  -c " some-command | some-command2  --stdin 
password-for-otheruser"


suggestions welcome

cheers
lux-integ



More information about the blfs-support mailing list