Operating System - Linux
1826376 Members
4824 Online
109692 Solutions
New Discussion

Re: grant command execution as root

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

grant command execution as root

Hello,

How can I grant an user executes rsh commmand as root?

Thanks in advance for your help.
Regards,

Carles
2 REPLIES 2
Rajesh SB
Esteemed Contributor
Solution

Re: grant command execution as root

Hi,

Server Side:
Ensure rshd service is enabled in xinetd.
Just give create .rhosts file and enter

at root home directory.

Cleint Side:
Use Command # rsh -l

Ensure there is no /etc/securetty file, which denies root user login remotely.

Thanks & Regards,
Rajesh
Carles Viaplana
Valued Contributor

Re: grant command execution as root

hello,

I forgot to add to .rhosts file.

Now script works fine.

Thanks!

Carles