Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to run su

Status
Not open for further replies.

iolair

IS-IT--Management
Oct 28, 2002
965
US
Is it possible to create a shell script that will run a program that needs root access? I'm trying to automate the running of etherape. I was looking for a way to "feed" the su command a password without user intervention. Here is sort of what I'm thinking:

su /sbin/etherape &

But the man and info pages don't mention a switch or parameter to send the password to it. Yes, I need to run etherape as root.


Iolair MacWalter
Director of IT
 
Thanks.

Iolair MacWalter
Director of IT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top