Ubuntu 22 04 FTP Server Configuration
Ubuntu 22 04 FTP Server Configuration
write_enable=YES
local_umask=022
chroot_local_user=YES
allow_writeable_chroot=YES
user_sub_token=$USER
local_root=/var/www/html
pasv_enable=YES
pasv_min_port=40000
pasv_max_port=50000
pasv_address= <My Server IP>
Page 1|5
Page 2 of 5
7. Troubleshooting Tips:
• Check Server Logs: Review the FTP server logs to identify errors:
• Test Active Mode (Optional): If Passive Mode issues persist, switch to Active
Mode in FileZilla:
Page 2|5
Page 3 of 5
Example
2. Change the Listening Port: Add or modify the following line to specify a new port (e.g.,
2121):
Comment # listen=NO
listen_port=2121
• UFW:
• iptables:
6. Inform Users: Make sure users are aware they need to connect to the new port (e.g.,
ftp://your-server-ip:2121).
ufw enable
ufw status
ufw disable
ufw reload
ufw delete 3
Page 4|5
Page 5 of 5
• Verify Passive Mode Ports: Ensure the specified Passive Mode ports (e.g., 40000–
50000) are not blocked by a firewall or router.
• Server Logs: Check the FTP server logs for additional details:
• Use Active Mode: If Passive Mode is problematic, switch to Active Mode in FileZilla:
1. Go to Edit > Settings > FTP > Transfer Mode.
2. Select Active Mode and try reconnecting.
Page 5|5