Operating System - Linux
1828184 Members
2537 Online
109975 Solutions
New Discussion

Using root / remote shell

 
Lior Mishkovsky
Advisor

Using root / remote shell

Hi,

I need the syntax to rsh with private user while using root.
Meaning : I'm using root now and I want to SU to user "builder" (for example) which have a .rhosts proxy and do a remote shell to another machine : Can anyone give me the syntax of doing it.
(Please no answers of expect - I need to keep it simple ...).
3 REPLIES 3
Jarle Bjorgeengen
Trusted Contributor

Re: Using root / remote shell

Maybe you can use sudo.

man sudo

Rgds Jarle
Jerome Henry
Honored Contributor

Re: Using root / remote shell

Sudo is a good idea :
sudo -u builder rsh hostname.
Good luck.
J
You can lean only on what resists you...
Stuart Browne
Honored Contributor

Re: Using root / remote shell

Or you could just 'su' as you're root:

su - builder -c rsh
One long-haired git at your service...