Vsftpd unter CentOS7 installieren
vsftpd installieren
yum -y install vsftpd
Konfig öffnen
vi /etc/vsftpd/vsftpd.conf
Konfig anpassen folgenden Inhalt hinzufügen
anonymous_enable=NO ascii_upload_enable=YES ascii_download_enable=YES pasv_enable=Yes pasv_max_port=10100 pasv_min_port=10090 chown_uploads=YES ## Uncomment - Enter your Welcome message - This is optional ## ftpd_banner=Welcome to UNIXMEN FTP service. ## Add at the end of this file ## use_localtime=YES chown_uploads=YES
Dienst aktiveren/starten
systemctl enable vsftpd systemctl start vsftpd
IPtables konfigurieren
iptables -I INPUT -p tcp --destination-port 10090:10100 -j ACCEPT iptables -N FTP iptables -I INPUT 7 -j FTP iptables -I FTP -s 0.0.0.0/0 -p tcp --dport 21 -j ACCEPT service iptables save
Allgemein die Rechte setzen
setsebool -P allow_ftpd_full_access 1
Optional die Rechte auf ein Verzeichnis setzen wenn Ihr Ordner erstellen wollt oder Dateien erstellen wollt.
chmod 777 /usr/share/
Antwort