Difference between revisions of "CentOS 8.x vsftpd"
From Notes_Wiki
(Created page with "<yambe:breadcrumb self="CentOS 8.x vsftpd">CentOS 8.x file sharing|CentOS 8.x file sharing</yambe:breadcrumb> =CentOS 8.x vsftpd= To setup vsftpd use following steps # Instal...") |
m |
||
Line 1: | Line 1: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x file sharing]] > [[CentOS 8.x vsftpd]] | |||
To setup vsftpd use following steps | To setup vsftpd use following steps | ||
Line 54: | Line 53: | ||
[[Main Page|Home]] > [[CentOS]] > [[CentOS 8.x]] > [[CentOS 8.x file sharing]] > [[CentOS 8.x vsftpd]] |
Latest revision as of 17:14, 15 May 2022
Home > CentOS > CentOS 8.x > CentOS 8.x file sharing > CentOS 8.x vsftpd
To setup vsftpd use following steps
- Install vsftpd server
- dnf -y install vsftpd vim
- Enable and start service
- systemctl enable vsftpd
- systemctl start vsftpd
- Edit '/etc/vsftpd/vsftpd.conf' as follows:
- chroot_local_user=YES
- allow_writeable_chroot=YES
- chroot_list_enable=YES
- # (default follows)
- chroot_list_file=/etc/vsftpd/chroot_list
- Create user using:
- useradd user1
- passwd user1
- Create /etc/vsftpd/chroot_list with
- user1
- Restart and check status
- systemctl restart vsftpd
- systemctl status vsftpd
- Either disable firewall using
- systemctl stop firewalld
- systemctl disable firewalld
- OR allow ftp via firewall using (Not tested)
- firewall-cmd --add-service=ftp --permanent
- firewall-cmd --reload
- Open nautilus and try to connect using
- ftp://anonymous@<server-ip-or-fqdn> #Should lead to permission denied
- ftp://user1@<server-ip-or-fqdn> #Enter password to access entire system using ftp protocol
Refer:
- https://vitux.com/centos-vsftpd/
- https://www.osradar.com/how-to-configure-a-ftp-server-on-opensuse-15-1/ -- For OpenSuse leap 15 vsftpd setup
Home > CentOS > CentOS 8.x > CentOS 8.x file sharing > CentOS 8.x vsftpd