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:
Can't reproduce this now. Although PAM_TTY isn't set, I don't see the error, and su works fine.