From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 03:01:43 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A06EA16A402 for ; Sun, 25 Mar 2007 03:01:43 +0000 (UTC) (envelope-from vinzstyle@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.244]) by mx1.freebsd.org (Postfix) with ESMTP id 5494613C44B for ; Sun, 25 Mar 2007 03:01:43 +0000 (UTC) (envelope-from vinzstyle@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1700893ana for ; Sat, 24 Mar 2007 20:01:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=p1GLekXl9PMTDEYG+/JY6IlZKcTg5yPT1efcDVayTAS34taEoNQ8iSjC7eWUHn+JVY4svnjxsDxvAbigTC3bUqG+eiGe7mtf+5t+y93Gswl902ipUItEaGGzCUDdmB9eaSVIAWZbXcnuM+8MCaRohecSqa739S1hWAtjplHI9JI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=f0mX5dYAELYazG6vVQEGWOsRySu4nREaj+E6d5ZTul1ul1DTfpd8bteEvaIPzzlJmANO4D2EtuNK1wruNsYAgbaZ/dnUZ0EC3kx71clbZRUNXsjHR11XuAMS5OQwQVg585dxaM053I+V7HveByArEREjwbcG6uQ18N1KV3+4V0M= Received: by 10.100.121.12 with SMTP id t12mr3892559anc.1174791702626; Sat, 24 Mar 2007 20:01:42 -0700 (PDT) Received: by 10.100.242.10 with HTTP; Sat, 24 Mar 2007 20:01:42 -0700 (PDT) Message-ID: Date: Sun, 25 Mar 2007 05:01:42 +0200 From: "Vincent Bolinard" To: freebsd-questions@freebsd.org In-Reply-To: <0JFC00GZGN8788C0@osl1sminn1.broadpark.no> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <6.0.0.22.2.20070321160756.02621968@mail.computinginnovations.com> <0JFC00GZGN8788C0@osl1sminn1.broadpark.no> Cc: Bernd Trippel , =?ISO-8859-1?Q?Kyrre_Nyg=E5rd?= , Derek Ragona Subject: Re: How to use vsftpd with wirtual users without LinuxPAM ? 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, 25 Mar 2007 03:01:43 -0000 2007/3/23, Kyrre Nyg=E5rd : > At 22:08 21.03.2007, Derek Ragona wrote: > >For so few users, you can use regular accounts with the shell set to: > >/usr/bin/false > > > > -Derek > > > > > >At 11:47 AM 3/21/2007, Vincent Bolinard wrote: > >>Hello, > >> > >>I'd like to know how can I set up virtual users without pam_userdb.so > >>(which is not included in OpenPAM). > >> > >>vsftpd needs pam_userdb.so to authenticate against the db Berkeley data= base. > >>What else can I use ? > >> > >>I don't want to use MySQL because there won't be a lot of virtual > >>users (< 50). > >> > >>Thank you for your help. > >>_______________________________________________ > >>freebsd-questions@freebsd.org mailing list > >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions > >>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd= .org" > >> > >>-- > >>This message has been scanned for viruses and > >>dangerous content by MailScanner, and is > >>believed to be clean. > >>MailScanner thanks transtec Computers for their support. > > You can use htpasswd instead: htpasswd vsftpd.db > > Then back up your /etc/pam.d/ftpd (maybe ftp as well) and replace its > content with: > > auth required /usr/local/lib/pam_pwdfile.so pwdfile /usr/local/etc/vsftpd= .db > account required /usr/lib/pam_permit.so > > I hope it works. > > Kyrre > > I followed Kyrre's advice and use pam_pwdfile and htpasswd to generate the (encrypted) password file. Thanks for your answers !