LightDM's PAM config should call pam_mail.so to set MAIL env var

Bug #2027776 reported by Daniel Richard G.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Light Display Manager
New
Undecided
Unassigned

Bug Description

Currently, when a user logs in via LightDM, the MAIL environment variable is not set in the session. This is normally set by pam_mail(8) in the PAM config of the service providing the login, e.g. /etc/pam.d/login . (This PAM module is also what prints the "You have new mail" message at login time.)

Please add something like the following to /etc/pam.d/lightdm:

    # Defines the MAIL environment variable
    session optional pam_mail.so nopen

(The "nopen" prevents any mail-related message from being printed, which is probably desirable for a graphical login.)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.