I have configured group and user like bellow , and now when user login through winSCP or filezilla they can go to back and can see another directory as well .i just want to this user should have access specific directory and can’t go any other directory .|
groupadd ftp-users
useradd -g ftp-users -d /var/ftp/pub aftp
chown aftp:ftp-users /var/ftp/pub
chmod 777 /var/ftp/pub
vi /etc/vsftpd/vsftpd.conf >> chroot_local_user=YES
setsebool -P allow_ftpd_anon_write=1
setsebool allow_ftpd_full_access on
getsebool -a | grep ftp
setsebool -P ftp_home_dir on
chcon -t public_content_rw_t /var/ftp/pub
passwd [username]
sudo service vsftpd restart