VSFTPD virtual users pam_userdb not found

Associate
Joined
1 Aug 2003
Posts
1,053
I've set up VSFTPD and tried to set it up for virtual users.

In the /etc/pam.d/vsftpd file, it reads:

#%PAM-1.0
session required pam_loginuid.so
auth required pam_userdb.so db=/etc/vsftpd/users.db
account required pam_userdb.so db=/etc/vsftpd/users.db

I created the users.db file by writing text on alternate lines in a file called users.txt using nano then using db_load -T -t hash -f users.txt users.db

When anyone tries to access their ftp account (to simplify things, the only account there is hmm with a password of hmm) the xfer log gives the following error:

Nov 18 21:22:13 server vsftpd: pam_userdb(vsftpd:auth): user_lookup: could not open database `/etc/vsftpd/users.db': No such file or directory

Any ideas?
 
I found one page where someone was experiencing similar problems, they claimed that it was due to using nano over vi. I dutifully, if doubtfully, tried their resolution but to no effect.

I was reminded of something I read ages ago.

vi was written for a world that doesn't exist anymore - unless you decide to get a satellite phone and use it to connect to the Net at 2400 baud - Bill Joy
 
Back
Top Bottom