Hello, Not exactly the accurate answer to your question but I use pure-ftpd. It does exactly what you want: A user is chrooted and cannot see other users directories (which are not within the user's tree)
----- Mail original ----- > De : Wesley <open...@e-solutions.re> > @ : Nicolai <nicolai-om...@chocolatine.org> > Cc : misc@openbsd.org > Envoyi le : Lundi 7 mai 2012 19h44 > Objet : Re: Ftpd chroot in a user folder name > > I already read man pages of ftpd ;-) > All are well explained. Need to play with /etc/ftpchroot and /etc/ftpusers, > /etc/login.conf (ftp-dir and ftp-chroot) > > I can chroot to for example /var/www/htdocs but all users will see the others > folders, it is a problem. > I just want that for example user named : "site1" can access (chroot) > only his folder /var/www/htdocs/site1 > It is why i tried something like : ftp-dir=/var/www/htdocs/%u (but the > "%u" is misunderstood) > > Any idea ? or a better way to achieve this ? > > Thank you very much. > > -- > Wesley > >> The ftpd manpage says >> >> ftp-chroot A boolean value. If set, users in this class will be >> automatically chrooted to the user's login directory. >> >> ftpd wants to chroot to the user's login directory... so what is the >> login directory? Is ftpd chrooting to the user's home directory? If >> so, it is doing exactly what you told it to do. >> >> Nicolai