The consensus seems to be: Cannot be done. Use sudo or expect.
Thanks to all!
> -----Original Message-----
> From: Dunn Alethia D CONT DLVA
> Sent: Wednesday, January 30, 2002 2:06 PM
> To: 'tru64-unix-managers_at_ornl.gov'
> Subject: how do i pass a password using su - username -c
>
>
>
> How do I pass the passwd for username when issuing su - username -c in a
> script. I am prompted for
> a password if I su - username on command line?
>
> Thanks!
>
>
>
>
>
>
> Alethia Dunn
> Chugach Telecommunications Company
> Computer Analyst
> Office: (540) 653-8255
> Fax: (540) 653-8415
> email: dunnad_at_nswc.navy.mil
>
>
Received on Thu Jan 31 2002 - 13:04:37 NZDT