cancel
Showing results for 
Search instead for 
Did you mean: 

command remsh

 
awax
Occasional Contributor

command remsh

My user is protect whit password
It's possible execute this command whit other users :
remsh cad1 -l root "/usr/sbin/reboot -h"

3 REPLIES
Shoghi Martinez G.
Honored Contributor

Re: command remsh

If the user knows the root password of the remote machine, of course.

Check the .rhost file in the remote machine too
Avinash20
Honored Contributor

Re: command remsh

Yes this can be possible

Check this doc which will help you to understand

http://docs.hp.com/en/B2355-90827/ch05s02.html
"Light travels faster than sound. That's why some people appear bright until you hear them speak."

Re: command remsh

remsh cad1 -l root "/usr/sbin/reboot -h"

Note: shutdown(1m) will allow other users to use it. See /etc/shutdown.allow. That may be safer than allowing users to do any root command.