Bug 57935 - Rexec fails when 'auth sufficient /lib/security/pam_rhosts_auth.so' exists on /etc/pam.d/rexec
Summary: Rexec fails when 'auth sufficient /lib/security/pam_rhosts_auth.so' exists ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: pam
Version: 7.1
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Aaron Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-01-02 17:08 UTC by Jorge Costa
Modified: 2007-04-18 16:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-20 09:21:23 UTC
Embargoed:


Attachments (Terms of Use)

Description Jorge Costa 2002-01-02 17:08:28 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)

Description of problem:
With pam-0.75-18.7.i386.rpm  the following options don't work for rexec, 
the line regarding 
rhosts must be commented out for rexec work.

#%PAM-1.0
# For root login to succeed here with pam_securetty, "rexec" must be
# listed in /etc/securetty.
auth       required     /lib/security/pam_nologin.so
auth       required     /lib/security/pam_securetty.so
auth       required     /lib/security/pam_env.so
auth       sufficient   /lib/security/pam_rhosts_auth.so
auth       required     /lib/security/pam_stack.so service=system-auth
account    required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth

I've downgraded pam to the packages on redhat CD 7.1, pam-0.74-22 and it 
works ok now.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1.Upgrade to the lastests pam packages from redhat
2.Edit /etc/pamd.d/rexec
#%PAM-1.0
# For root login to succeed here with pam_securetty, "rexec" must be
# listed in /etc/securetty.
auth       required     /lib/security/pam_nologin.so
auth       required     /lib/security/pam_securetty.so
auth       required     /lib/security/pam_env.so
auth       sufficient   /lib/security/pam_rhosts_auth.so
auth       required     /lib/security/pam_stack.so service=system-auth
account    required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth

3.add rexec to /etc/securetty

4. Check exec not commented out in /etc/services

5. Restart xinetd

6. From another system, try :
[hpuxbox:/] rexec linuxbox -l root  -n ls /
Password (linuxbox:root):
rexec: Lost connection

	

Actual Results:  [hpuxbox:/] rexec linuxbox -l root  -n ls /
Password (linuxbox:root):
rexec: Lost connection


Additional info:

I've tried this on several systems, all had the same problem and all were 
solved using the same solution, downgrade the package.

Comment 1 Tomas Mraz 2004-10-20 09:21:23 UTC
This doesn't apply to current rsh-server package.
(There is no more pam_rhosts_auth.so in /etc/pam.d/rexec.)


Note You need to log in before you can comment on or make changes to this bug.