|
Scripts and changing users
Hi,
I am writing somescripts to shut down some services in Korn Shell. Some of the services are under different owners. For example when I want to shutdown NXserver I need to be "root", but when I shut down the webserver I need to be under a different user.
Manual I would use "su root" and then type the password to log in as a super user.
How do I write a script to login as 'root' and pass the password as an argument?
Thanks
|