I can ssh into my NAS so that's taken care of. Next is SFTP. I followed a Quitips guide which I like a lot. Of course it's not working. I installed vsftp into the NAS. I removed most of the commented text out for brevity. Here's the config file:
I'm unable to ftp into the server using a browser, but I can use Filezilla to log in. When I use Filezilla, every command to upload a file is denied.
Code:
# Example config file /etc/vsftpd.conf # listen=NO # listen_ipv6=YES # # Allow anonymous FTP? (Disabled by default). anonymous_enable=NO # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd's) local_umask=022 local_umask=020 # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # If enabled, vsftpd will display directory listings with the time # in your local time zone. The default is to display GMT. The # times returned by the MDTM FTP command are also affected by this # option. use_localtime=YES # # Activate logging of uploads/downloads. xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES # # chown_uploads=YES # chown_username=whoever # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). # (Warning! chroot'ing can be very dangerous. If using chroot, make sure that # the user does not have write access to the top level directory within the # chroot) chroot_local_user=YES # chroot_list_enable=YES # (default follows) # chroot_list_file=/etc/vsftpd.chroot_list # # # This option should be the name of a directory which is empty. Also, the # directory should not be writable by the ftp user. This directory is used # as a secure chroot() jail at times vsftpd does not require filesystem # access. secure_chroot_dir=/var/run/vsftpd/empty # This string is the name of the PAM service vsftpd will use. pam_service_name=vsftpd # Added lines from Vsftp guide at https://www.howtoforge.com/tutorial/ubuntu-vsftp/ pasv_enable=YES pasv_min_port=10000 pasv_max_port=1100 user_sub_token=$USER local_root=/home/vsftp userlist_enable=YES userlist_file=/etc/vsftpd.userlist uerlist_deny=NO
Comment