Red Hat Bugzilla – Bug 32750
root rsh doesn't work (qa0322)
Last modified: 2007-03-26 23:42:45 EDT
The rsh protocol is not working as root. The configuration has been
modified to allow root .rhosts using the magic -h parameter, as follows
# default: on
# description: The rshd server is the server for the rcmd(3) routine and, \
# consequently, for the rsh(1) program. The server provides \
# remote execution facilities with authentication based on \
# privileged port numbers from trusted hosts.
disable = no
socket_type = stream
wait = no
user = root
log_on_success += USERID
log_on_failure += USERID
server = /usr/sbin/in.rshd
server-args = -h
Here's what appears in the logs:
Mar 22 17:23:10 scratchy pam_rhosts_auth: allowed to
email@example.com as root
Mar 22 17:23:10 scratchy in.rshd: rsh denied to
firstname.lastname@example.org as root: Permission denied.
Mar 22 17:23:10 scratchy in.rshd: rsh command was 'pwd'
The pam_securetty module is causing the failure. I'd request maybe a comment in
the man page or in the file /etc/xinetd.d/rsh to the effect that root rsh will
require an entry in /etc/securetty as 'rsh'. Resolving as notabug.