(no subject)

David Bartley dtbartle at csclub.uwaterloo.ca
Thu Oct 4 00:50:38 UTC 2007


If you have nfs-mounted maildir's with root_squash enabled, pam_mail will
not work, in the sense that it always displays 'No mail' regardless of
whether or not you actually have mail. This is because pam_mail scans the
maildir directory as root, and root_squash then denies pam_mail access to
the maildirs. I've included a patch that calls seteuid to switch to the
user being logged in, scans the maildir, and reverts to the previous
effective uid.

I have deployed a patched pam_mail to a few machines and have not noticed
any problems.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pam_mail_root_squash.patch
Type: text/x-diff
Size: 1197 bytes
Desc: pam_mail_root_squash.patch
URL: <http://listman.redhat.com/archives/pam-list/attachments/20071003/e3b3ea76/attachment.bin>


More information about the Pam-list mailing list