FTP Setup Commands

Set up and configure an FTP server with the necessary commands.

Code

service iptables stop
vi /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
service iptables start
vi /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
ascii_upload_enable=YES
ascii_download_enable=YES
service vsftpd restart
useradd username
passwd chosenpassword
usermod -d / username