I should want to set server ftp to allow only certains users.

So with vsftpd I set the vsftpd.conf with :

local_enable=YES
user_config_dir=/etc/vsftpd_user_conf

In /etc/vsftpd_user_conf for the unix user foo I set in a file foo :

local_root=/home/foo/ftpdir
anon_world_readable_only=NO
write_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=YES
anon_other_write_enable=YES
virtual_use_local_privs=YES
local_umask=022

... and I launch vsftpd. I can log in ftp with user foo. But I also can with other unix user ! How can I disabled other unix users ?

Thanks.

link|improve this question
feedback

3 Answers

up vote 2 down vote accepted

In vsftpd.conf add:
userlist_enable=YES
userlist_file=/etc/vsftpd.userlist
userlist_deny=NO

Edit the file to contain a username per row.

link|improve this answer
It's works. Planty thanks. – Istao Mar 6 '11 at 10:46
feedback

add the user you want to deny to user_list list.

link|improve this answer
feedback

there is a file in /etc/ftpusers put the allowed one only here.

no need to define in vsftpd

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.