Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2004 12:41:09 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Matthew Rench <lists@pelennor.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: pam_mail
Message-ID:  <20040908114109.GB11639@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <20040907230404.GB74422@gandalf.pelennor.net>
References:  <20040907230404.GB74422@gandalf.pelennor.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--z6Eq5LdranGa6ru8
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Sep 07, 2004 at 06:04:05PM -0500, Matthew Rench wrote:

> I would like an ssh login to produce the same check for new mail that=20
> /usr/bin/login does. (That is, "You have new mail." or similar printed out
> after login, unless ~/.hushlogin exists.) On my linux box, this is achiev=
ed
> using the pam_mail module. If I run "locate pam_mail" on my FreeBSD 4.10 =
box, I
> get the following:
>=20
>   % locate pam_mail
>   /usr/src/contrib/libpam/modules/pam_mail
>   /usr/src/contrib/libpam/modules/pam_mail/README
>=20
> Have I forgotten to install part of the source tree that I don't have any
> source for this module? Is there an easier way to get this module install=
ed
> (e.g. one of the ports)? Or should I be going about this an altogether
> different way?

4.x uses the Linux libpam sources, but in 5.x that's been replaced by
OpenPAM -- in theory you can read all about OpenPAM at
http://www.openpam.org/, (but that seems to be denying access at the
moment) or http://sourceforge.net/projects/openpam/

Anyhow, for various reasons, not least easing the transition between
Linux libpam and OpenPAM, not all the facilities from libpam were
implemented under FreeBSD.  One of those missing parts is pam_mail.
So you're not going mad: that's the way it's supposed to work.

Unfortunately what's missing is a port of the missing bits of Linux
libpam.

One way of getting the 'new mail' notification for your ssh(1)
sessions would be to set 'UseLogin' in /etc/ssh/sshd_config -- see
sshd_config(5).

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--z6Eq5LdranGa6ru8
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (FreeBSD)

iD8DBQFBPu/ViD657aJF7eIRAoISAJ0cgPvVya/PkMqZiMdctvA/kruPIgCdGc5c
DWJ2i0piK7hHCoUQIhxrnZU=
=7wCa
-----END PGP SIGNATURE-----

--z6Eq5LdranGa6ru8--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040908114109.GB11639>