Link to home
Start Free TrialLog in
Avatar of laureen
laureen

asked on

vsftpd: chrooting user to other directory than home?

Does anyone know how to jail a user (NOT virtual) into another directory or subdirectory of home?

Regards,
Laureen
Avatar of kiranghag
kiranghag

What do you mean? Do you want to keep the user in its chroot jail i.e. in its home directory or another directory that is not its home directory?

If you want to keep the user limited to its home directory only then. Just do add following line in your vsftpd.conf file.

chroot_list_enable=YES

This will place all the local users in the jail of their home directory. Their root directory is their home directory.
You can also place the selected users in the home directory jail and others not. For more details on doing this see the man pages of vsftpd.conf.

Regds,
Rajendra.





Avatar of laureen

ASKER

i have read the vsftpd.conf man pages very carefully but i didn't find any solution for my problem.
here a short example of what i want to do:

user "jack" has homedir "/home/jack" in /etc/passwd
and i want to jail him to "/home/jack/xxx"

is this possible with vsftpd without patching?

btw: i'm using fedora 3 with vsftpd 2.0.1

regards,
laureen
ASKER CERTIFIED SOLUTION
Avatar of surya_prabhakar
surya_prabhakar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial