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!
I am running Red Hat Linux
Thanks in advance!