Bug#330420: [Pkg-shadow-devel] Bug#330420: login: Breaks system-wide maildir spools

Christian Perrier bubulle at debian.org
Wed Sep 28 05:00:46 UTC 2005


Quoting Henrique de Moraes Holschuh (hmh at debian.org):
> Package: login
> Version: 1:4.0.12-2
> Severity: important
> 
> Recent changes to login appear to have killed login.defs support for
> maildir.  The comments in login.defs do not reflect that. 
> 
> For a maildir tree at /var/mail/<user>/, we get MAIL=/ when the user logins.
> 
> pam.d/login has noenv specified for the mail pam module.

That seems to be the problem. We certainly need to remove the "noenv"
directive from the pam_mail line in the default login PAM
configuration file:

# Prints the status of the user's mailbox upon succesful login
# (Replaces the `MAIL_CHECK_ENAB' option from login.defs). You
# can also enable a MAIL environment variable from here, but it
# is better handled by /etc/login.defs, since userdel also uses
# it to make sure that removing a user, also removes their mail
# spool file.
session    optional   pam_mail.so standard





More information about the Pkg-shadow-devel mailing list