1828204 Members
2282 Online
109975 Solutions
New Discussion

Control ftp directory

 
SOLVED
Go to solution
hangyu
Regular Advisor

Control ftp directory

I want to create a new login ID and control this ID can ONLY access to a specify directory eg. /home/ftp_usr
But I found that the user can go other directory by "cd /tmp" or " .. " to go to top level , can advise how to disable the user run "cd" command ? thx.
3 REPLIES 3
Ivan Krastev
Honored Contributor
Solution

Re: Control ftp directory

You must chroot user in his home directory - but it depends on ftp server. What ftp server you have ?

cheers,
ivan
hangyu
Regular Advisor

Re: Control ftp directory

thx reply ,

I use vsftp , I have setup #chroot_list_enable=YES , now ALL users can only access his $HOME directory , can advise if I just want a SPECIFIC user apply this feature , what can I do ? thx.
Ivan Krastev
Honored Contributor

Re: Control ftp directory

See http://vsftpd.beasts.org/vsftpd_conf.html - section about chroot_list_enable. You can specify a list of users, who will be chrooted.

cheers,
ivan