Monday, December 3, 2007

Rsh configuration

Requirement : User abc should be able to do an rsh and execute command on remote linux machine foo.bar.com from myfoo.bar.com

Solution : (Ideally first 3 steps should be enough to setup rsh execution. Please continue with steps 4 onwards to dig more.)

1. Create .rhosts file in user home directory.
2. Add following entries in it
foo.bar.com abc
myfoo.bar.com abc
3. Edit /etc/hosts.equiv (create new if it does not exist already) file to add entries
foo.bar.com abc
myfoo.bar.com abc
4. Edit /etc/securetty to have following entries
rsh
rlogin
rexec
rsync
5. Make sure that disable=no is set for following scripts in /etc/xinetd.d
rlogin
rsh
rexec

No comments: