I need to run a script that su's to diff user and then runs a command as the second user. I think the way to do this is using -c option on su but I can't seem to get it to work. Can anyone provide me with sample code / syntax ?
I am running Red Hat Linux
Thanks in advance!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.