Ano-Tech Computers
Enter keyword:

rsh fails with 'Permission denied' as root under RH 7.2
Problem:
"Permission denied" when attempting to run commands via rsh as root on a RH7.2 server
 
Solution:
The system log and rsh documentation incorrectly indicates that you need to add the argument '-h' to your xinetd configuration. This was true for earlier versions, but in RH7.2 PAM will check your /etc/securetty file for an 'rsh' entry instead.

Simply add 'rsh' to your '/etc/securetty' file and it should work as expected. Keep in mind that you still need to create a proper '.rlogin' file as per the documentation.

 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles