From owner-freebsd-ports Thu Oct 18 5:53:41 2001 Delivered-To: freebsd-ports@freebsd.org Received: from pkl.net (spoon.pkl.net [212.111.57.14]) by hub.freebsd.org (Postfix) with ESMTP id 1AC4237B408 for ; Thu, 18 Oct 2001 05:53:37 -0700 (PDT) Received: from localhost (rik@localhost) by pkl.net (8.9.3/8.9.3) with ESMTP id NAA27739 for ; Thu, 18 Oct 2001 13:53:36 +0100 Date: Thu, 18 Oct 2001 13:53:36 +0100 (BST) From: freebsd-ports@rikrose.net X-Sender: rik@pkl.net To: ports@freebsd.org Subject: Problem with pam_pwdfile 0.95 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi all, Either I'm doing something wrong, or I've found a problem. I've plugged pam_pwdfile into pure_ftpd, with the following entries in /etc/pam.conf: pure-ftpd auth sufficient pam_skey.so pure-ftpd auth requisite pam_cleartext_pass_ok.so pure-ftpd auth sufficient pam_pwdfile.so pwdfile /etc/ftp.passwd pure-ftpd auth required pam_unix.so try_first_pass pure-ftpd account required pam_permit.so pure-ftpd session required pam_permit.so The ftp.passwd file constsis of a single line consisting of a fake username ("foo"), and the output of: md5 -s "foo". (Yes, this is an internal machine, before anyone worries about me giving out usernames and passwords). Which yields the following results in /var/log/messages, when attempted: Oct 18 13:46:51 cleese pam_pwdfile[48726]: wrong password for user foo Oct 18 13:46:53 cleese /kernel: pid 48726 (pure-ftpd), uid 0: exited on signal 11 (core dumped) Have I got the format of the password file wrong? I also have another question, how is pure-ftpd going to get a fake user's home directory to, if the pam auth succeeds. Am I going down the wrong track completely for allowing FTP access, but no shell && mail? TIA, rik -- PGP Key: D2729A3F - Keyserver: wwwkeys.uk.pgp.net - rich at rdrose dot org Key fingerprint = 5EB1 4C63 9FAD D87B 854C 3DED 1408 ED77 D272 9A3F Public key also encoded with outguess on http://rikrose.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message