Red Hat Bugzilla – Bug 134796
cannot loging with rsh and telnet: 'system error'
Last modified: 2007-11-30 17:10:51 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041002
Description of problem:
Previously, telnet and rsh were working fine on my machine, and I
could use either to connect to it.
Now however, any attempt to rlogin to the machine results in the error
message 'System error' followed by 'rlogin: connection closed.'
SSH logins still work fine. telnet logins are even more unpleasant:
[local@hydra local]$ telnet calliope
Connected to calliope.
Escape character is '^]'.
Fedora Core release 2 (Tettnang)
Kernel 220.127.116.11 on an i686
Connection closed by foreign host.
I have NIS configured - however, I get the same problem using local
users as well as NIS ones.
I'll attach an strace of xinetd + children during a rlogin
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. set up .rhosts properly
2. login to another machine
3. attempt to login to the affected machine
Actual Results: 'System error' message and then connection close
Expected Results: A shell on the machine
Created attachment 104833 [details]
strace -f -s 256 -p [pid of xinetd]
I was seeing these failures as well.
Seems to be caused by a missing "/etc/pam.d/remote" file. I copied
"/etc/pam.d/rlogin" to "/etc/pam.d/remote" and my telnet/rlogin
This was deduced from the 'strace' output:
3839 open("/etc/pam.d/remote", O_RDONLY) = -1 ENOENT (No such file or
3839 open("/etc/pam.d/other", O_RDONLY) = 3
Thanks! The workings of pam are a mystery to me...
It seems that util-linux-2.12a-12 now includes a /etc/pam.d/remote
file as well, so this bug has been fixed.