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