Bug 74209 - su doesn't set PAM_TTY
Summary: su doesn't set PAM_TTY
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: sh-utils
Version: 7.3
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-09-17 21:30 UTC by Jason Heiss
Modified: 2007-04-18 16:46 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-12-10 12:35:21 UTC
Embargoed:


Attachments (Terms of Use)

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.


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