mikeypl wrote:
Hi!
I need to chroot user not to /home/username, but to /var/www/users/username
. In man ftpd i found something about ftp-dir, which I should set in
/etc/login.conf, but i don't know how to set this to be user-depended... i
don't want to set :ftp-dir:/var/www/pub but :ftp-dir:/var/www/users/username
where username depends on user who is logging to the ftp... I'm using
standard ftpd in OpenBSD 4.2.
You can make the users home directory what you want and then add their
name to ftpchroot and they will be chroot to that only. When they login
they will be lock in that directory.
You can specify that directory when you create the users if you want, or
change it after the fact using vipw.
Is that what you are looking for?
Daniel