How does one configure a user when they login to change root into a subdirectory of their home folder. ie /home/username/files
Asked
Active
Viewed 1.0k times
0

Benoit Duffez
- 11,839
- 12
- 77
- 125

SurferJoe
- 965
- 1
- 8
- 13
1 Answers
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
-
Thanks Tuim that was the ticket – SurferJoe Jan 16 '13 at 11:55
-
1@SurferJoe Please mark the question as answered for future reference then :) – Tuim Jan 16 '13 at 12:10