solved:enable RSH on RHEL 3.0
a s p a s i a
aspasia at pair.com
Fri Apr 22 19:54:01 UTC 2005
thanks, this is how i was able to make it work:
1. Prepare Linux host to provide rsh Capability:
a. check that rsh daemon is installed:
chkconfig --list | grep rsh
or
rpm -qa | grep rsh-server
If does not exist, need to install the rsh-server RPM package:
rsh-server-0.17-17.i386.rpm.
i. download rpm into /tmp directory of the Linux host
ii. rpm -Uvh rsh-server-0.17-17.i386.rpm
2. Edit the following configuration files:
/etc/xinetd.d/rexec with DISABLE = NO
/etc/xinetd.d/rsh with DISABLE = NO
/etc/xinetd.d/rlogin with DISABLE = NO
3. Append the following per line in the /etc/securetty file:
rsh
rexec
rlogin
4. Edit the following PAM-related files to allow remote logins from other
systems:
i. Edit the file /etc/pam.d/login and comment out the following
line by inserting a pound sign (#) in front of it, as follows:
# auth required /lib/security/pam_securetty.so
ii. Edit the file /etc/pam.d/rsh and change the following line:
auth required /lib/security/pam_rhosts_auth.so
to
auth sufficient /lib/security/pam_rhosts_auth.so
Comment out the following line by inserting a pound sign (#) in front of
it, as follows:
# auth required /lib/security/pam_securetty.so
5. Restart the xinitd service:
# /etc/rc.d/init.d/xinetd restart
> There might be more, but something like as follows:
> up2date rsh-server
> chckconfig rsh on
> setup ip table
> echo "rsh" >> /etc/securetty
> echo "hostname to allow root access with rsh if any" >> /root/.rhosts
>
> yasushi
>
a s p a s i a
. . . . . . .
More information about the redhat-list
mailing list