0

How does one configure a user when they login to change root into a subdirectory of their home folder. ie /home/username/files

Benoit Duffez
  • 11,839
  • 12
  • 77
  • 125
SurferJoe
  • 965
  • 1
  • 8
  • 13

1 Answers1

15

Edit

/etc/vsftpd/vsftpd.conf

Add or change:

chroot_local_user=YES
user_sub_token=$USER
local_root=/home/$USER/directory
Tuim
  • 2,491
  • 1
  • 14
  • 31