From owner-freebsd-questions@FreeBSD.ORG Wed Sep 8 11:41:15 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7342016A4CE for ; Wed, 8 Sep 2004 11:41:15 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C8CB43D41 for ; Wed, 8 Sep 2004 11:41:14 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i88Bf9iC088881 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 8 Sep 2004 12:41:09 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i88Bf9FN088880; Wed, 8 Sep 2004 12:41:09 +0100 (BST) (envelope-from matthew) Date: Wed, 8 Sep 2004 12:41:09 +0100 From: Matthew Seaman To: Matthew Rench Message-ID: <20040908114109.GB11639@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Matthew Rench , freebsd-questions@freebsd.org References: <20040907230404.GB74422@gandalf.pelennor.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z6Eq5LdranGa6ru8" Content-Disposition: inline In-Reply-To: <20040907230404.GB74422@gandalf.pelennor.net> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 08 Sep 2004 12:41:10 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: pam_mail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Sep 2004 11:41:15 -0000 --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--