Configuring the rsh services in aix.
uncomment the following line in "/etc/inetd.conf"
shell stream tcp6 nowait root /usr/sbin/rshd rshd
# vi /etc/inetd.conf
## service socket protocol wait/ user server server program
## name type nowait program arguments
##
ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a
shell stream tcp6 nowait root /usr/sbin/rshd rshd
step 2
After making the changes in " /etc/inetd.conf" , you need to refresh the inetd deamon.
# refresh -s inetd
Add the hosts from where you want to connect to the .rhosts file of the server
# cd ~
# vi .rhosts
server1
server2
server3
Kindly check the permissions of this file also, it should be 600.
* Make sure that both files (/etc/hosts.equiv & /.rhosts) have
permissions of 600; they're ignored otherwise.
For non-root user's you need to add the hosts in the /etc/hosts.equiv file.
/.rhosts is used for root rsh attempts.
Step 1
uncomment the following line in "/etc/inetd.conf"
shell stream tcp6 nowait root /usr/sbin/rshd rshd
# vi /etc/inetd.conf
## service socket protocol wait/ user server server program
## name type nowait program arguments
##
ftp stream tcp6 nowait root /usr/sbin/ftpd ftpd
telnet stream tcp6 nowait root /usr/sbin/telnetd telnetd -a
shell stream tcp6 nowait root /usr/sbin/rshd rshd
step 2
After making the changes in " /etc/inetd.conf" , you need to refresh the inetd deamon.
# refresh -s inetd
Step 3
Add the hosts from where you want to connect to the .rhosts file of the server
# cd ~
# vi .rhosts
server1
server2
server3
Kindly check the permissions of this file also, it should be 600.
* Make sure that both files (/etc/hosts.equiv & /.rhosts) have
permissions of 600; they're ignored otherwise.
For non-root user's you need to add the hosts in the /etc/hosts.equiv file.
/.rhosts is used for root rsh attempts.