SLES 15
Sponsored Link

FTP Server : Install Vsftpd
2019/01/24
 
Install Vsftpd to configure FTP Server.
[1] Install and Configure Vsftpd.
www:~ #
zypper -n install vsftpd
www:~ #
vi /etc/vsftpd.conf
# line 19: change

write_enable=
YES
# line 36: uncomment

ls_recurse_enable=YES
# line 62,63: uncomment ( enable chroot )

chroot_local_user=YES
chroot_list_enable=YES
# line 65: uncomment ( chroot list file )

chroot_list_file=/etc/vsftpd.chroot_list
# line 80: change (no anonymous)

anonymous_enable=
NO
# line 171,172: uncomment ( allow ascii mode )

ascii_upload_enable=YES
ascii_download_enable=YES
# line 184: change if need (if listen only IPv4)

listen=
YES
# line 189: change if need (if listen only IPv4)

# if YES, listen on both IPv4 and IPv6

listen_ipv6=
NO
# line 217: uncomment (turn off seccomp filter)

seccomp_sandbox=NO
# add to the end

# specify root directory if need

# if not specify, users' home directory become FTP home directory

local_root=public_html
# use local time

use_localtime=YES
www:~ #
vi /etc/vsftpd.chroot_list
# add users you allow to move over their home directory

suse
www:~ #
systemctl start vsftpd

www:~ #
systemctl enable vsftpd

[2] If Firewalld is running, allow FTP service.
www:~ #
vi /etc/vsftpd.conf
# add to the end

# fix PASV ports to allow FTP access with PASV

pasv_enable=YES
pasv_min_port=21000
pasv_max_port=21010
www:~ #
systemctl restart vsftpd
www:~ #
firewall-cmd --add-service=ftp --permanent

success
www:~ #
firewall-cmd --add-port=21000-21010/tcp --permanent

success
www:~ #
firewall-cmd --reload

success
Matched Content
 
Tweet