[svlug] script commands requiring root access

Todd G. Gardner nicoli at bigfoot.com
Thu Jan 17 22:31:02 PST 2002


I believe I am running the bash shell.  A script that I run requires
root access.  I would like that script to automatically su - root in the
script.  If I put su - root or su -m root it does not run the rest of 
the script until I exit from the root session.

How do I run commands that require root access from a script without
manually typing su - root?

Thank you,


More information about the svlug mailing list