[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SSH log weirdness



* Jeff Bonner (lunar@comcast.net) [020604 16:47]:
> Whenever I logout from an SSH2 session now, I get the following
> in my /var/log/messages:
> 
>    June  4 19:36:26 firegate sshd[24364]: PAM pam_putenv: delete
>    non-existent entry; MAIL
> 

I'm not sure exactly why it's carping like that, but take a look at your
/etc/pam.d/ssh . Removing the noenv option from the pam_mail line
should make that complaint disappear from your logs. I'm not sure I
understand why, but that's how it tests here. I've got one machine whose
pam_mail line looks like this:

session    optional     pam_mail.so standard

and another with:

session    optional     pam_mail.so standard noenv

and the latter gets complaints exactly like you describe each time a
user logs out (or more precisely, closes the ssh session). Commenting it
out (so that it the config was like the other machine) silenced it.

If you play with this, test to make sure that the MAIL environment
variable is being set in a sane way and doesn't break anything for your
users.

good times,
Vineet
-- 
Currently seeking opportunities in the SF Bay Area
Please see http://www.doorstop.net/resume.shtml

Attachment: pgpWbrynwzXVK.pgp
Description: PGP signature


Reply to: