Categories
Linux

Red Hat & CentOS – Limit FTP users to their /home/user directory

Limit FTP users to their /home/user directory.

Open vsftpd configuration file — /etc/vsftpd/vsftpd.conf.

# vi /etc/vsftpd/vsftpd.conf

Make sure following line exists (and uncommented):

chroot_local_user=YES

Save and close the file. Restart vsftpd.

# service vsftpd restart
Comments

By Tommy Elmesewdy

DevOps Engineer