Vsftp Installation: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 26: | Zeile 26: | ||
for passive mode add | for passive mode add | ||
− | pasv_enable= | + | pasv_enable=YES |
+ | |||
+ | um schreibenden Zugriff zu erlauben, Kommentarzeichen vor folgender Zeile entfernen | ||
+ | #write_enable=YES | ||
+ | |||
+ | |||
*Testen des Zugriffs | *Testen des Zugriffs | ||
Zeile 43: | Zeile 48: | ||
*'''ftp> get test.txt''' | *'''ftp> get test.txt''' | ||
− | + | ||
− | |||
Benutzern Zugriff erlauben: | Benutzern Zugriff erlauben: |
Version vom 16. Februar 2023, 09:44 Uhr
installation
sudo apt-get update sudo apt-get install vsftpd
vsftpd test configuration
mkdir -p /var/ftp/pub chown nobody:nogroup /var/ftp/pub echo "vsftpd test file" | sudo tee /var/ftp/pub/test.txt
- add / change in vi /etc/vsftp.conf
anonymous_enable=YES # # Point users at the directory we created earlier. anon_root=/var/ftp/ # # Stop prompting for a password on the command line. no_anon_password=YES # # Show the user and group as ftp:ftp, regardless of the owner. hide_ids=YES # # Limit the range of ports that can be used for passive FTP pasv_min_port=40000 pasv_max_port=50000
for passive mode add
pasv_enable=YES
um schreibenden Zugriff zu erlauben, Kommentarzeichen vor folgender Zeile entfernen
#write_enable=YES
- Testen des Zugriffs
- ftp localhost
Connected to localhost. 220 (vsFTPd 3.0.3) Name (localhost:dummy.user): anonymous 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files.
- Passiven Modus anschalten
- ftp> passive
Passive mode on.
- Verzeichnis wechseln und Testdatei herunterladen
- ftp> cd pub
- ftp> get test.txt
Benutzern Zugriff erlauben:
userlist_enable=YES userlist_file=/etc/vsftpd.userlist userlist_deny=NO
restart & enable
systemctl restart vsftpd.service systemctl enable vsftpd.service