Description of problem:
pam_setcred gives the service modules a chance to set environment variables with
pam_putenv. On successful operation, the appplication may then copy the
accumulated PAM environment variables to the process environment with putenv(3).
login performs the environment copy after pam_open_session and pam_setcred have
been called. In contrast, su does it after pam_open_session but *before*
pam_setcred, and this is incorrect.
Version-Release number of selected component (if applicable):
The PAM functionality is added to the GNU su.c with coreutils-4.5.2-pam.patch.
My platform is actually on WS 3.0.
See related bug 150056
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
For more information of the RHEL errata support policy, please visit:
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.