I need to chroot
all local users to their home directories, but one user should have access to all user directories. If I put admin_user
in chroot_list_file
he has access for whole file system. I want to restrict access for him only to /home
, but when he logs in to ftp server his default directory should be /home/admin_user
. How can achieve that?
I have vsftpd installation with following config:
# /etc/vsftpd/vsftpd.conf
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=002
dirmessage_enable=YES
xferlog_enable=YES
dual_log_enable=YES
connect_from_port_20=YES
xferlog_std_format=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
listen=YES
pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
max_clients=0
max_per_ip=0
# /etc/vsftpd/chroot_list
admin_user