I use vsftpd as well, but I do not have as advanced a configuration as you do. Send me (or post) your vsftpd.conf, and I'll see what happens when I use your config. On Thursday 14 November 2002 14:30, Togan Muftuoglu wrote:
Hi
I am trying to create virtual users as explaind in the vsftpd EXAMPLES I have done evryhing per the steps but when I try to login via the virtual user here defined in the ftplogins.txt is the message I get
vsftpd: PAM unable to dlopen(/lib/security/pam_userdb.so)
vsftpd: PAM [dlerror: /lib/security/pam_userdb.so: undefined symbol: __db_ndbm_open]
Well, the error is definitely there because the symbol doesn't exist (I'm using SuSE 8.1). This is even with a newer pam (pam-0.76-36): # nm /lib/security/pam_userdb.so | grep ndbm #
Here are the steps I did
db_load -T -t hash -f ftplogins.txt /etc/sunftp_login.db
chmod 600 /etc/sunftp_login.db
add the two lines below the TM remark /etc/pam.d/vsftpd so it looks like this
#%PAM-1.0
# Uncomment this to achieve what used to be ftpd -A. # auth required pam_listfile.so item=user sense=allow # file=/etc/ftpchroot onerr=fail
auth required pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed # Uncomment the following line for anonymous ftp. auth sufficient pam_ftp.so auth required pam_unix.so auth required pam_shells.so account required pam_unix.so password required pam_unix.so session required pam_unix.so
# NOTE TO SELF #ALL ABOVE IS DEFAULT EXCEPT ANONYMOUS #added by TM for VSFTP Virtual User auth required pam_userdb.so db=/etc/sunftp_login account required pam_userdb.so db=/etc/sunftp_login
SuSE Version: 7.3 Kernel : 2.2.19 VSFTP : vsftpd-1.1.0-3 taken from people/mmj db-utils: db-utils-3.1.17-121 PAM : pam-0.75-57
I would recommend updating to vsftpd 1.1.3, which came out less than a week ago. Version 1.1.0 came out in July. My RPM at https://sourceforge.net/project/showfiles.php?group_id=28610 . Source at ftp://vsftpd.beasts.org/users/cevans/vsftpd-1.1.3.tar.gz . If you need IPv6 support, you'll have to use vsftpd 1.1.2 (w/ patch), but it's still 2 versions over what you have. Perhaps the error is fixed in newer versions.
I found one message where it is the same problem (yet pam version is lower)
http://www.redhat.com/mailing-lists/pam-list/msg05292.html
Now Any ideas either to solve this or any workarounds to give virtual users upload ability (not anonymous)
--
Karol Pietrzak