SUMMARY: how do I pass a password using su - username -c

From: Dunn Alethia D CONT DLVA <DunnAD_at_NSWC.NAVY.MIL>
Date: Thu, 31 Jan 2002 08:01:16 -0500

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

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT