If during configuration you've screwed up the configuration file somehow and want to restore the original configuration, you can uninstall vsftpd by issuing command sudo apt remove vsftpd -purge. You can now connect to your ftp server with a favourite FTP client, like WinSCP. Once it's all done, just restart vsftpd - sudo systemctl restart vsftpd. The pasv settings are enabling FTP passive mode and specify allowed port ranges, which should be the ports you open in NSG: The whole custom section should look like this: pasv_enable=YES And allow user's home folder to be writeable - allow_writeable_chroot=YES Next, enable passive mode by inserting these lines anywhere in the config file: pasv_enable=YESĪlso add seccomp_sandbox=NO because of a rare "feature" workaround in some linux distros. Therefore you need to create one - mkdir ftp from your home folder. It essentially says that local users are allowed to log in, and their home folder will be called ftp. Now we want to allow access for this machine's users to their home directory, therefore search for chroot_local_user and make sure it looks like this: chroot_local_user=YES
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |