[Bug 811441] New: rlogin fails with "rlogin: connection refused" under openSuse 12.3
https://bugzilla.novell.com/show_bug.cgi?id=811441 https://bugzilla.novell.com/show_bug.cgi?id=811441#c0 Summary: rlogin fails with "rlogin: connection refused" under openSuse 12.3 Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Security AssignedTo: security-team@suse.de ReportedBy: rnelson@airflowsciences.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0 Under openSuse 12.2, rlogin is working as expected. after a distribution upgrade (zypper dup), it fails with: rlogin: connection refused. /var/log/messages shows: rlogind[7508]: pam_rhosts(rlogin:auth): allowed access to username@xxx as username login: FATAL: can't reopen tty: No such file or directory /etc/hosts.deny and /etc/hosts.allow confirmed to be identical before and after distribution upgrade /etc/passwd has username using a shell of /bin/sh. If I change it to /bin/bash the result is the same. Reproducible: Always Steps to Reproduce: 1. rlogin xxx 2. 3. Actual Results: rlogin: Connection refused Expected Results: a connection rsh works as expected -
rsh xxx cat /etc/HOSTNAME xxx
so it looks like its something in the login process. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c1
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c2
Kai Muenz
it works half way for me.
$ rlogin localhost connect to address ::1: Connection refused Trying 127.0.0.1... Password: <hangs>
It also hangs at this point for me. I'm currently trying to work around it, as rsh, on the other hand, works fine here. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c3
Robert Nelson
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c4
--- Comment #4 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c5
--- Comment #5 from Robert Nelson
so you only see connection refused? or do you also see hangs=?
I only see "connection refused". It appears the hang is at the password request and, with the computer name in /etc/hosts.equiv, no password request is made. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c6
--- Comment #6 from Richard Warner
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c7
--- Comment #7 from Robert Nelson
I had the same basic problem. The rlogin client is OK on 12.3 (tested vs 12.2 server), and actually, the server itself is ok too. The real problem is "login" from util-linux.
openSuse 12.2 uses util-linux-2.21.2-4.5.1.x86_64 and 12.3 uses 2.21.2-10.2.1. I tried a rebuilt source rpm from the 12.2 version on 12.3 and I was able to rlogin without a problem.
Digging deeper, I installed the source rpms for both versions and compared them. I found a patch for login on the .2-10 version that is causing the problem: login-close-tty-before-vhangup.patch
I modified the .spec file to eliminate that patch and then rebuilt and installed the .2-10 util-linux version and rlogin continued to work.
So, to get this working, download the util-linux source rpm, install it, and then edit /usr/src/packages/SPECS/util-linux.spec and comment out the 2 lines for the login-close patch. Then "rpmbuild -bb /usr/src/packages/SPECS/util-linux.spec", and finally "rpm -Uvh --replacepkgs --replacefiles /usr/src/packages/RPMS/x86_64/util-linux-2.21.2-10.2.1.x86_64.rpm" to install the rebuilt rpm.
Warning - if Suse does not fix this (and they might choose not to based on the comments in that patch file), a later update of util-linux could re-break this. You might have to do it again later in that case. You could alternatively lock the util-linux version.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c8
Richard Warner
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c9
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c10
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c
Petr Uzel
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c11
Petr Uzel
How typical of Suse... a month later and still no fix released, despite a user diagnosing the problem completely.
Thanks for diagnosing it. However, the referenced login-close-tty-before-vhangup.patch was added for a good reason, which, IIRC, was fixing the problem with ppp hanging (private bug 778842), so just removing the patch is not that easy. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c13
--- Comment #13 from Robert Nelson
Thanks for diagnosing it. However, the referenced login-close-tty-before-vhangup.patch was added for a good reason, which, IIRC, was fixing the problem with ppp hanging (private bug 778842), so just removing the patch is not that easy.
Generally a patch that fixes one problem by causing a regression in another area is not acceptable. Given that the patch is already installed and that a fix to the regression doesn't seem to be forthcoming, it seems like someone has to ask whether a fix to a ppp problem that happens occasionally is worth breaking another package every time it is used. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c14
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=811441
https://bugzilla.novell.com/show_bug.cgi?id=811441#c15
Richard Warner
http://bugzilla.novell.com/show_bug.cgi?id=811441
http://bugzilla.novell.com/show_bug.cgi?id=811441#c17
Tomáš Chvátal
participants (1)
-
bugzilla_noreply@novell.com