master.h Posted February 27, 2015 Share Posted February 27, 2015 So I've been using the same vsftpd.conf settings since I first started up with unRAID back in 5.0 beta 8. Yesterday I just made the jump from 5.0.6 to 6.0b14b, and suddenly my FTP doesn't work. I get prompted for a username and password when trying to connect, so I know it's "working," I just can't authenticate any more. No usernames or passwords were changed. Here is my vsftp.conf file (I should note that I also never had any users listed in the "FTP Users" box on the settings page). Does anyone have suggestions as to how to get FTP working properly again? # vsftpd.conf for unRAID # write_enable=NO connect_from_port_20=YES anon_world_readable_only=NO # # No anonymous logins anonymous_enable=NO # # Allow local users to log in. local_enable=YES local_umask=077 local_root=/mnt/user/ExternalAccess #check_shell=NO # # All file ownership will be 'root' guest_enable=YES guest_username=root anon_upload_enable=YES anon_other_write_enable=YES anon_mkdir_write_enable=YES # # Logging to syslog syslog_enable=YES log_ftp_protocol=NO xferlog_enable=NO # # Misc. dirmessage_enable=NO ls_recurse_enable=YES Link to comment
master.h Posted February 27, 2015 Author Share Posted February 27, 2015 I also see entries in the log file where an FTP connection is made. Feb 27 10:08:25 Saidin vsftpd[8816]: connect from 63.77.139.252 (63.77.139.252) Feb 27 10:08:30 Saidin vsftpd[8845]: connect from xx.xx.xxx.xxx (xx.xx.xxx.xxx) Feb 27 10:08:32 Saidin vsftpd[8854]: connect from xx.xx.xxx.xxx (xx.xx.xxx.xxx) Feb 27 10:08:36 Saidin vsftpd[8876]: connect from xx.xx.xxx.xxx (xx.xx.xxx.xxx) Feb 27 10:08:41 Saidin vsftpd[8905]: connect from xx.xx.xxx.xxx (xx.xx.xxx.xxx) Link to comment
jonp Posted February 28, 2015 Share Posted February 28, 2015 Will look into this on Monday if no one here responds with help before then. Link to comment
dlandon Posted February 28, 2015 Share Posted February 28, 2015 There were some changes made to vsftpd in one of the v6 betas. I think these were made for security reasons. I can't find the exact post about the changes, but I believe you need to add listen=NO seccomp_sandbox=NO to your # Misc section. Link to comment
master.h Posted February 28, 2015 Author Share Posted February 28, 2015 I added those two entries as suggested, and it didn't make a difference. Same behavior: prompted for a login, but not able to authenticate. Link to comment
dlandon Posted February 28, 2015 Share Posted February 28, 2015 Look at the stock vtfstd.conf file and compare to yours. You will find the difference. I wasn't sure I remembered all the changes. Link to comment
master.h Posted February 28, 2015 Author Share Posted February 28, 2015 It looks like I've got it fixed. I copied the stock vsftpd.conf file as dlandon suggested, and went from there. From the stock file, I only changed a few lines. Basically just turned off writing, changed the local root, and disabled the check against vsftpd.user_list. # vsftpd.conf for unRAID # connect_from_port_20=YES write_enable=NO local_root=/mnt/user/ExternalAccess local_umask=0 # # No anonymous logins anonymous_enable=NO # # Allow local vsftpd.user_list users to log in. local_enable=YES userlist_enable=NO #userlist_deny=NO #userlist_file=/boot/config/vsftpd.user_list check_shell=NO # # Logging to syslog syslog_enable=YES log_ftp_protocol=NO xferlog_enable=NO # # Misc. dirmessage_enable=NO ls_recurse_enable=YES listen=NO seccomp_sandbox=NO Link to comment
jonp Posted February 28, 2015 Share Posted February 28, 2015 It looks like I've got it fixed. I copied the stock vsftpd.conf file as dlandon suggested, and went from there. From the stock file, I only changed a few lines. Basically just turned off writing, changed the local root, and disabled the check against vsftpd.user_list. # vsftpd.conf for unRAID # connect_from_port_20=YES write_enable=NO local_root=/mnt/user/ExternalAccess local_umask=0 # # No anonymous logins anonymous_enable=NO # # Allow local vsftpd.user_list users to log in. local_enable=YES userlist_enable=NO #userlist_deny=NO #userlist_file=/boot/config/vsftpd.user_list check_shell=NO # # Logging to syslog syslog_enable=YES log_ftp_protocol=NO xferlog_enable=NO # # Misc. dirmessage_enable=NO ls_recurse_enable=YES listen=NO seccomp_sandbox=NO Awesome! One less thing for me to do on Monday. [emoji106] Glad you got squared away! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.