User Tools

Site Tools


servers:linux:vsftpd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
servers:linux:vsftpd [2026/04/21 20:38] – [fstab] Sean Rhoneservers:linux:vsftpd [2026/06/10 00:33] (current) Sean Rhone
Line 6: Line 6:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[linux:distros:server:ubuntu_server_lts|Ubuntu Server (LTS)]]+  * [[linux:distros:server:opensuse_tumbleweed_server|openSUSE Tumbleweed (Server)]] 
 +  * [[linux:notes:ext4|ext4 NAS Drive]]
  
 ====== Dependencies ====== ====== Dependencies ======
Line 12: Line 13:
 **** ****
  
-  sudo apt install 'vsftpd'+  sudo zypper install 'vsftpd'
  
 ====== Firewall ====== ====== Firewall ======
  
-  * [[linux:notes:ufw_uncomplicated_firewall|ufw Notes]]+  * [[linux:notes:firewalld|Firewalld Notes]]
  
-  sudo ufw allow '20'/'tcp' && sudo ufw allow '21'/'tcp' && sudo ufw allow '40000':'50000'/'tcp'+  sudo firewall-cmd --add-service='vsftpd--permanent && sudo firewall-cmd --reload
  
-===== Disable IPv6 ===== +  sudo firewall-cmd --info-service='vsftpd'
- +
-  sudo ufw status numbered +
- +
-  sudo ufw delete '9' +
- +
-  sudo ufw delete '8' +
- +
-  sudo ufw delete '7'+
  
 ====== Service ====== ====== Service ======
Line 37: Line 30:
  
 ====== Settings ====== ====== Settings ======
- 
-===== General ===== 
  
   sudo -e '/etc/vsftpd.conf' && sudo systemctl restart 'vsftpd'   sudo -e '/etc/vsftpd.conf' && sudo systemctl restart 'vsftpd'
Line 44: Line 35:
 <code> <code>
 # Custom # Custom
 +anonymous_enable=NO
 write_enable=YES write_enable=YES
-utf8_filesystem=YES 
 listen=YES listen=YES
 listen_ipv6=NO listen_ipv6=NO
 pasv_enable=YES pasv_enable=YES
-pasv_min_port=40000 +local_root=/mnt/NAS1
-pasv_max_port=50000 +
-local_root=/srv/ftp/NAS1+
 force_dot_files=YES force_dot_files=YES
 +seccomp_sandbox=NO
 +data_connection_timeout=300
  
 # End</code> # End</code>
- 
-====== fstab ====== 
- 
-  * [[bsd:notes:ntfs_fstab|NTFS]] 
- 
-===== UUID ===== 
- 
-  * Use either ''PARTUUID'' (GPT) or ''UUID'' 
- 
-  sudo blkid 
- 
-===== fstab ===== 
- 
-  sudo mkdir -p '/srv/ftp/NAS1' && sudo -e '/etc/fstab' 
- 
-  sudo mkdir -p '/srv/ftp/NAS1' '/srv/ftp/NAS2' && sudo -e '/etc/fstab' 
- 
-<code> 
-# NAS 
-PARTUUID=x /srv/ftp/NAS1 ntfs-3g defaults,noatime,big_writes,nocompression,windows_names,uid=1000,gid=1000 0 2 
-#UUID=x /srv/ftp/NAS2 ntfs-3g defaults,noatime,big_writes,nocompression,windows_names,uid=1000,gid=1000 0 2 
- 
-# End</code> 
- 
-  sudo systemctl daemon-reload && sudo mount --all && sync 
- 
-===== Safe Unmount Externals ===== 
- 
-  sudo zypper install 'udisks2' 
- 
-  sudo udisksctl unmount --force --block-device='/dev/sdb' 
- 
-  sudo udisksctl power-off --block-device='/dev/sdb' 
- 
-====== Permissions ====== 
- 
-===== chown ===== 
- 
-  sudo chown -R 'espionage724':'espionage724' '/srv/ftp/NAS1' && sync 
- 
-  sudo chown -R 'espionage724':'espionage724' '/srv/ftp/NAS2' && sync 
- 
-===== chmod ===== 
- 
-  sudo chmod -R '0700' '/srv/ftp/NAS1' && sync 
- 
-  sudo chmod -R '0700' '/srv/ftp/NAS2' && sync 
  
/srv/www/wiki/data/attic/servers/linux/vsftpd.1776818300.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki