Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

3 Answers

up vote 3 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.

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

add the user you want to deny to user_list list.

share|improve this answer
add comment

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

no need to define in vsftpd

share|improve this answer
1  
Didn't you got that one backwards? "list of users disallowed FTP access" –  user65297 Nov 25 '13 at 23:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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