Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Mar 2007 05:01:42 +0200
From:      "Vincent Bolinard" <vinzstyle@gmail.com>
To:        freebsd-questions@freebsd.org
Cc:        Bernd Trippel <trip@nosubject.org>, =?ISO-8859-1?Q?Kyrre_Nyg=E5rd?= <kyrreny@broadpark.no>, Derek Ragona <derek@computinginnovations.com>
Subject:   Re: How to use vsftpd with wirtual users without LinuxPAM ?
Message-ID:  <bd4110c30703242001v4d3dd0a9t1747bf13ca24569e@mail.gmail.com>
In-Reply-To: <0JFC00GZGN8788C0@osl1sminn1.broadpark.no>
References:  <bd4110c30703210947l64d8ebdfjaf0ab0153c68bb27@mail.gmail.com> <6.0.0.22.2.20070321160756.02621968@mail.computinginnovations.com> <0JFC00GZGN8788C0@osl1sminn1.broadpark.no>

next in thread | previous in thread | raw e-mail | index | archive | help
2007/3/23, Kyrre Nyg=E5rd <kyrreny@broadpark.no>:
> 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 <username>
>
> 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 !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bd4110c30703242001v4d3dd0a9t1747bf13ca24569e>