From owner-freebsd-questions@FreeBSD.ORG Sun Apr 2 15:36:58 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 91A1016A41F for ; Sun, 2 Apr 2006 15:36:58 +0000 (UTC) (envelope-from info@redshells.co.uk) Received: from grump.bluelight.org.uk (bluelight.org.uk [80.229.144.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 895A443D46 for ; Sun, 2 Apr 2006 15:36:46 +0000 (GMT) (envelope-from info@redshells.co.uk) Received: from games ([192.168.2.138]) by grump.bluelight.org.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.54 (FreeBSD)) id 1FQ4nV-000OdR-SF for freebsd-questions@freebsd.org; Sun, 02 Apr 2006 16:47:26 +0100 Message-ID: <442FEF90.6090700@redshells.co.uk> Date: Sun, 02 Apr 2006 16:36:48 +0100 From: Terry User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20060402120045.24F1116A46E@hub.freebsd.org> In-Reply-To: <20060402120045.24F1116A46E@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "grump.bluelight.org.uk", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: >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. >> [...] Content analysis details: (1.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.1 TW_VS BODY: Odd Letter Triples with VS 0.1 TW_WD BODY: Odd Letter Triples with WD 2.6 NO_DNS_FOR_FROM DNS: Envelope sender has no MX or A DNS records 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 15:36:58 -0000 >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 Just to let you know that worked a treat Thanks