LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2003, 02:38 PM   #1
JeffV
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Rep: Reputation: 0
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.
 
Old 11-13-2003, 07:13 AM   #2
Yoss
LQ Newbie
 
Registered: Apr 2003
Posts: 17

Rep: Reputation: 0
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
 
Old 11-14-2003, 09:47 AM   #3
JeffV
LQ Newbie
 
Registered: Nov 2003
Posts: 2

Original Poster
Rep: Reputation: 0
Resolved the problem. vsftpd doesn't like blank lines in the per-user configuration files.

Last edited by JeffV; 11-14-2003 at 11:11 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
vsftpd setup with virtual users markus1982 Linux - Networking 21 11-04-2004 06:38 AM
vsftpd and virtual users chrull Linux - Software 0 05-14-2004 05:09 PM
vsftpd and virtual users poweroff Linux - General 0 02-26-2004 07:04 AM
Installation vsftpd - Virtual Users Yoss Linux - Networking 7 07-11-2003 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration