LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   vsftpd and virtual users (https://www.linuxquestions.org/questions/linux-software-2/vsftpd-and-virtual-users-115299/)

JeffV 11-12-2003 02:38 PM

vsftpd and virtual users
 
After following the how-to at www,markus-welsch.de for configuring vsftpd to use virtual users I get the following error from any client trying to connect.

220 (vsFTPd 1.2.0)
Name (attendance.its.swt.edu:none): course1
331 Please specify the password.
Password:
500 OOPS: missing value in config file for:
Login failed.
421 Service not available, remote server has closed connection


Here is /etc/vsftpd/vsftpd.conf:


# =========================================================================
# base configuration
# -------------------------------------------------------------------------
anon_world_readable_only=NO
anonymous_enable=NO
chroot_local_user=YES
guest_enable=YES
guest_username=ftp
hide_ids=YES
listen=YES
local_enable=YES
max_clients=100
max_per_ip=1
nopriv_user=ftp
pasv_max_port=65535
pasv_min_port=64000
session_support=NO
use_localtime=YES
user_config_dir=/etc/vsftpd/users
userlist_enable=YES
userlist_file=/etc/vsftpd/denied_users
xferlog_enable=YES
log_ftp_protocol=YES
pam_service_name=vsftpd
# -------------------------------------------------------------------------
# =========================================================================
# ftp settings
# -------------------------------------------------------------------------
anon_umask=0027
async_abor_enable=YES
connect_from_port_20=YES
dirlist_enable=NO
download_enable=NO
# =========================================================================

Here is /etc/pam.d/vsftpd:

#%PAM-1.0
auth required /lib/security/pam_userdb.so db=/etc/vsftpd/accounts debug
account required /lib/security/pam_userdb.so db=/etc/vsftpd/accounts debug


Here is /etc/vsftpd/users/course1:

anon_mkdir_write_enable=YES
anon_other_write_enable=YES
anon_upload_enable=YES
dirlist_enable=YES
download_enable=YES
local_root=/var/www/html/course1
write_enable=YES

The accounts.db file is in /etc/vsftpd. Im using Fedora Core1 and Berkeley DB 4.1.25 (included with Fedora). Any help or suggestions would be appreciated.

Yoss 11-13-2003 07:13 AM

Hi JeffV,

no really good idea why it doesn't work.

Is there an error message in the vsftpd log?

Maybe there is no entry "write_enable=NO" in the vsftpd.conf file ?

Do you tried the configuration files from the example-configuration ?

(ftp://vsftpd.beasts.org/users/cevans.../VIRTUAL_USERS)


bye
Yoss

JeffV 11-14-2003 09:47 AM

Resolved the problem. vsftpd doesn't like blank lines in the per-user configuration files.


All times are GMT -5. The time now is 04:00 AM.