Enable them:
Turn on these three using chkconfig on both the nodes: rexec, rsh and rlogin.
# chkconfig rexec on
# chkconfig rsh on
# chkconfig rlogin on
xinetd
Restart xinetd to be sure.
# service xinetd restart
.rhosts
On hostA's root home directory (usually /root), create a .rhosts file, which has hostB in it.
# cat .rhosts
hostB
Similarly, create a .rhosts on hostB's root home directory which has hostA in it.
# cat .rhosts
hostA
hosts.allow
Now, edit /etc/hosts.allow on hostA:
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL : hostB
Edit /etc/hosts.allow on hostB:
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
ALL : hostA
hosts.equiv
Edit /etc/hosts.equiv on hostA to have
# cat /etc/hosts.equiv
hostB
Edit /etc/hosts.equiv on hostB to have
# cat /etc/hosts.equiv
hostA
/etc/securetty
And finally, knock off /etc/securetty (rename it or worse, purge it) on both hostA and hostB
Now you are good to go.
Disclaimer: Use at your own risk. Don't flame me. It sure worked for me. Actual results may vary. Use ssh in place of rlogin/rsh/telnet and the like, as ssh is more secure.
How to turn on rsh and rlogin on RedHat Enterprise Linux (RHEL 2.1/ 3.0)
By omp on Wednesday, April 18, 2007
Popular Posts
-
Well. We speak so much of security and make secure system, in concerns of that here I am explaining how to put ACL's on AIX sys...
-
Dear Friends, We have been working in UNIX platform since the last 3-4 years and we realized that industry is in need of qua...
-
Linux admin interview questions How do you take a single line of input from the user in a shell script? Write a script to convert all D...
-
All the commands are fired from (% - user) prompt not (# - root) so do not confuse with the #es there with root prompt. They are the command...
-
Enable them: Turn on these three using chkconfig on both the nodes: rexec, rsh and rlogin. # chkconfig rexec on # chkconfig rsh on # chkc...
-
Bryce Harrington and Kees Cook have come together to write this informative article titled ' Managing Disk Space with LVM ' which explains...
-
The PAM (Pluggable Authentication Module) module pam_tally keeps track of unsuccessful login attempts then disables user accounts when a pr...
-
-----Original Message----- From: www4mail@wm.ictp.trieste.it [mailto:www4mail@wm.ictp.trieste.it] Sent: Fri 9/9/2005 2:09 AM To: gra...
-
UNIX Questions and Answers Most answers refer to Solaris 2.x systems Hardware Issues How can I configure new devices without rebo...
-
Password Aging While it's clearly possible to use the /etc/passwd and /etc/shadow files in Solaris and other Unix systems without making ...
Post a Comment