From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653723422138.tru64-unix-managers.marc@archive.invalid> From: Dunn Alethia D CONT DLVA Date: Thu, 31 Jan 2002 13:01:16 +0000 To: tru64-unix-managers Subject: SUMMARY: how do I pass a password using su - username -c X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653723422138 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@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@nswc.navy.mil > >