minte9
LearnRemember



vsftpd - Very Secure FTP Daemon

https://www.fosslinux.com/14596/how-to-use-ftp-by-command-line-in-ubuntu.htm sudo apt update sudo apt ugrade sudo apt-get install vsftpd sudo service vsftpd enable # start service on system startup # Usage: /etc/init.d/vsftpd {start|stop|restart|reload|status}

ufw - Uncomplicated Firewall

sudo ufw allow ssh sudo wfw allow 20/tcp sudo ufw allow 21/tctp sudo ufw allow 40000:50000/tcp # open the ports for the passive FTP sudo ufw enable sufo ufw status sudo service ufw stop # can interupt others services, not set yer (like Synergy)

vsftpd.conf

sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.backup-copy sudo gedit /etc/vsftpd.conf write_enable=YES --> Allow the FTP users to write files to the FTP server chroot_local_user=YES --> Prevent the FTP users from browsing outside their own home directory local_enable=YES --> Allow local users to login through FTP. local_umask=022 --> Give the correct permissions to the uploaded files/directories sudo service vsftpd restart

ftp 500 error

ftp 192.168.0.105 # ubuntu ftp 500 OOPS: vsftpd: refusing to run with writable root inside chroot() https://ma.ttias.be/vsftpd-linux-500-oops-vsftpd-refusing-run-writable-root-inside-chroot/ This is caused by the fact that the directory of the user you’re connecting to, is write-enabled. In normal chroot() situations, the parent directory needs to be read-only. sudo gedit /etc/vsftpd.conf #add line allow_writeable_chroot=YES sudo service vsftpd restart ftp 192.168.0.105 # 230 Login successful. # Remote system type is UNIX. # Using binary mode to transfer files.
  



  Last update: 175 days ago