Thursday, December 11, 2008

How to enable rsh on solaris

We need to enter the hostname in the following files->
/.rhosts--This file resides on the server on which rsh is to be enabled and should have hostname and name of user which is allowed to rsh on the server.
/etc/hosts--to resolve the ip and hostname
/etc/hosts.allow
Also, one needs to comment the CONSOLE entry in the "/etc/default/login" file on the server on which rsh is to be enabled.
Also, we need to execute some commands and make changes in some files.
svcadm enable svc:/network/inetd:default
svcadm enable svc:/network/login:rlogin
svcadm enable svc:/network/shell:default
svcadm enable svc:/network/login:rlogin
svcadm refresh inetd

No comments: