[Bug 1491] New: Shadow and PAM

blfs-bugs at linuxfromscratch.org blfs-bugs at linuxfromscratch.org
Tue Aug 2 17:09:31 PDT 2005


http://blfs-bugs.linuxfromscratch.org/show_bug.cgi?id=1491

           Summary: Shadow and PAM
           Product: Beyond LinuxFromScratch
           Version: a-SVN
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: BOOK
        AssignedTo: blfs-book at linuxfromscratch.org
        ReportedBy: larry at linuxfromscratch.org
         QAContact: blfs-book at linuxfromscratch.org


I have found one situation where it doesn't work as it did. su used to get its
PATH from /etc/login.defs using ENV_PATH and ENV_SUPATH.  These are no longer
available and according to the mailing list, are pam's responsibility.  So the
path after su or su <user> is "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:."
(default path coded in Bash source).  This does not affect "su -" as that
sources /etc/profile.  The PATH can be set by the pam_env.so module by editing
/etc/security/pam_env.conf:
PATH          DEFAULT=/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin \
OVERRIDE=${PATH}
and adding pam_env.conf to the auth section of /etc/pam.d/su.

I have not found a way to drop in a default PATH for root when su is used. 
Under these conditions, "su -" is the only sure way to get a root path.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.



More information about the blfs-book mailing list