Computing.Net > Forums > Unix > su root as user from a script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

su root as user from a script

Reply to Message Icon

Name: db2dev
Date: June 2, 2004 at 15:01:33 Pacific
OS: hp ux
CPU/Ram: 2 gb
Comment:

Thanks for the response. I've another question. I was trying to connect to a remote system via ssh. When I run the script from my user account, ssh connects to remote system successfully. If I try running the same script as root, ssh asks for root password as ssh does't automatically login as root (unless I enable it in sshd2_config). I also learnt that su root can be done after logging as user. How can I achieve that in my script? Thanks




Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: su root as user from a script

Change of user in a script www.computing.net/answers/unix/change-of-user-in-a-script/6984.html

add user from cgi script www.computing.net/answers/unix/add-user-from-cgi-script/5361.html

running NDMCLI from a script www.computing.net/answers/unix/running-ndmcli-from-a-script/6856.html