Bug 74209

Summary: su doesn't set PAM_TTY
Product: [Retired] Red Hat Linux Reporter: Jason Heiss <jheiss-bugzilla>
Component: sh-utilsAssignee: Tim Waugh <twaugh>
Status: CLOSED CURRENTRELEASE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-10 12:35:21 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 Jason Heiss 2002-09-17 21:30:45 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529

Description of problem:
su doesn't set PAM_TTY, which causes PAM modules that check PAM_TTY
(pam_access is the one we're having trouble with) to fail.

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


How reproducible:
Always

Steps to Reproduce:
1.  Add a module to /etc/pam.d/system-auth which requires PAM_TTY to be set (and
set debug on for pam_stack in /etc/pam.d/su)
2.  Run su
3.  Get su: incorrect password
4.  Look in logs and see:

Sep 17 13:52:00 www pam_stack[19372]: NOT passing PAM_TTY to parent: source is NULL
Sep 17 13:52:00 www pam_access[26690]: couldn't get the tty name


Additional info:

Comment 1 Tim Waugh 2004-12-10 12:35:21 UTC
Can't reproduce this now.  Although PAM_TTY isn't set, I don't see the error,
and su works fine.