Chroot

Keith Woodworth kwoody at citytel.net
Wed Mar 16 10:38:38 PST 2005


Playing around with ftpchroot, FBSD 4.10.

I have one person that logs in to update two different virtual websites.
They were only doing one before and ftpchroot'd them and it worked fine.

So instead of creating a new login for them I gave them a new home dir and
put in two symlinks in that home dir pointing to each website directory.

Well ftpchroot locks them in and doesnt allow a cd to either of those
website directories.

Obviously taking them out of ftpchroot this works.

Ive looked over the man pages for ftp and related config files as well as
ln but do not see a way to have one person to have on login, to be
ftpchroot'd, yet update two directories.

Unless I do it the other way around. Instead, create two real dir's under
their home directory and symlink from the document root that apache
expects to the directories under their home dir.

Did that make sense?




More information about the freebsd-isp mailing list