Vsftp Installation: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „ =installation= sudo apt-get update sudo apt-get install vsftpd =firewall test configuration= mkdir -p /var/ftp/pub chown nobody:nogroup /var/ftp/pub ec…“)
 
Zeile 24: Zeile 24:
 
  pasv_min_port=40000
 
  pasv_min_port=40000
 
  pasv_max_port=50000
 
  pasv_max_port=50000
 +
 +
um schreibenden Zugriff zu erlauben, Kommentarzeichen vor folgender Zeile entfernen
 +
#write_enable=YES
 +
  
 
for passive mode add  
 
for passive mode add  
 
  pasv_enable=Yes  
 
  pasv_enable=Yes  
 
to vi /etc/vsftp.conf
 
to vi /etc/vsftp.conf
 +
 +
  
 
restart & enable
 
restart & enable
 
  systemctl restart vsftpd.service
 
  systemctl restart vsftpd.service
 
  systemctl enable vsftpd.service
 
  systemctl enable vsftpd.service

Version vom 16. Februar 2023, 08:55 Uhr


installation

sudo apt-get update
sudo apt-get install vsftpd

firewall 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 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

um schreibenden Zugriff zu erlauben, Kommentarzeichen vor folgender Zeile entfernen

#write_enable=YES


for passive mode add

pasv_enable=Yes 

to vi /etc/vsftp.conf


restart & enable

systemctl restart vsftpd.service
systemctl enable vsftpd.service