Using an allowed user list with VSFTPD
        Posted  
        
            by 
                Naftuli Tzvi Kay
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Naftuli Tzvi Kay
        
        
        
        Published on 2011-08-07T23:27:51Z
        Indexed on 
            2014/08/20
            4:23 UTC
        
        
        Read the original article
        Hit count: 627
        
According to the Wiki here, you can only allow certain users to log in over FTP using the following configuration in your /etc/vsftp.conf file:
userlist_enable=YES
userlist_file=/etc/vsftp.user_list
userlist_deny=NO
I've configured my system to use this configuration, and I only have one user which I'd like to expose over FTP named streams, so my /etc/vsftp.user_list looks like this:
streams
Interestingly enough, I cannot log in once I enable to user list. If I change userlist_enable to NO, then things work properly, but if I enable it, I can't log in all, it just keeps trying to reconnect. I don't get a login failed message, it just keeps trying to reconnect when using lftp. 
My /etc/vsftp.conf file is available on Pastebin here and my /etc/vsftp.user_list is available here. 
What am  I doing wrong here? I'd just like to only make the streams user able to log in. 
© Server Fault or respective owner