Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

su root as user

Status
Not open for further replies.
Mar 31, 2004
151
US
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



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top