Bug 8445
| Summary: | rsh from Sun/Solaris machine fails randomly | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | richieb |
| Component: | pam | Assignee: | Nalin Dahyabhai <nalin> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.1 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2003-01-25 00:03:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
richieb
2000-01-13 15:31:25 UTC
Could you try the rsh-*0.16-4 packages from Raw Hide ftp://rawhide.redhat.com/pub/rawhide Note that there are now several packages since the clients/servers have been split ... I suspect this is not a rsh problem, as much as a bug in PAM_unix. In all the cases when the failure occured, two processes were doing rsh for the same used at the same time. After I modified out script to have a delay of 5 seconds between the rsh commands the problem stopped. I've managed to reproduce the problem with a small script:
------cut here
#!/usr/local/bin/bash
host=chippewa
for x in {1, 2, 3, 4, 5, 6, 7, 8}
do
rsh $host uname -a &
sleep 2
done
---cut here
When "sleep" is present it works fine. But when sleep is commented out
I get this:
./rsh_test
[richieb on cree] scratch > Permission denied.
Protocol error, chippewa closed connection
Permission denied.
Linux chippewa 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
Linux chippewa 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
Linux chippewa 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
Linux chippewa 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
Linux chippewa 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 1999 i686 unknown
I can't reproduce the problem with your script against rsh*0.16. However, my /etc/pam.d/rsh file is different than yours: #%PAM-1.0 auth required /lib/security/pam_rhosts_auth.so auth required /lib/security/pam_nologin.so account required /lib/security/pam_pwdb.so session required /lib/security/pam_pwdb.so Could you see if the problem persists with that configuration as a sanity check? The problem is that I cannot use pam_pwdb.so module, because the machine is part of an NIS+ network and no user IDs exist in the passwd file. I'll have to try on a different machine. BTW, I was able to reproduce the problem on a SMP and on a single processor machine. So the problem is not related to SPM. I tried to run my test script on a plain RH 6.1 machine (single processor, no NIS+) and it worked fine. I believe this problem is due to a bug in glibc routine that looks up NIS+ passwords/users. assigned to nalin It certainly looks like a glibc problem if the failure is occurring in getpwnam(). Does this still occur on a 6.2 workstation? |