From owner-freebsd-questions@FreeBSD.ORG Sun Apr 2 11:46:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 2561916A41F for ; Sun, 2 Apr 2006 11:46:02 +0000 (UTC) (envelope-from trip@nosubject.org) Received: from server4.xenserve.com (ns7.xenserve.com [212.187.158.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60C2143D4C for ; Sun, 2 Apr 2006 11:46:00 +0000 (GMT) (envelope-from trip@nosubject.org) Received: (qmail 72198 invoked from network); 2 Apr 2006 12:45:58 +0100 Received: from localhost.34sp.com (HELO localhost) (127.0.0.1) by localhost.34sp.com with SMTP; 2 Apr 2006 12:45:58 +0100 Received: from chello080109037214.17.14.vie.surfer.at (chello080109037214.17.14.vie.surfer.at [80.109.37.214]) by webmail.nosubject.org (Horde MIME library) with HTTP; Sun, 02 Apr 2006 12:45:58 +0100 Message-ID: <20060402124558.k4d42fzeo0sco0k0@webmail.nosubject.org> Date: Sun, 02 Apr 2006 12:45:58 +0100 From: Bernd Trippel To: freebsd-questions@freebsd.org References: <442F16F3.4060209@bluelight.org.uk> In-Reply-To: <442F16F3.4060209@bluelight.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) Subject: Re: vsftpd pam problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 11:46:02 -0000 Quoting Terry : > Hi going by the docs for virtual users i have got to this file vsftpd.pam > > auth required /lib/security/pam_userdb.so db=/etc/vsftpd_login > account required /lib/security/pam_userdb.so db=/etc/vsftpd_login > > From google i gather pam_userdb.so isn't part of OpenPAM which is > what FreeBSD uses. So how do Freebsd users get round it or am i > missing some thing really silly. > In my understanding this is correct. There's no pam_userdb.so available for FreeBSD. You could use pam_pwdfile.so, which is in the ports-collection. Users are added/changed e.g. through htpasswd. Works well if you have not a lot of accounts. a simple vsftpd.pam could look like this: auth required /usr/local/lib/pam_pwdfile.so pwdfile /etc/vsftpd_login account required /usr/lib/pam_permit.so > Thanks >