Ubuntu – ProFTPD Virtual User Directory

ftpproftpdUbuntu

Alright, I'm trying to replicate a web hosting company's basic setup here by authenticating virtual users via SQL and redirect/jail them to their directory. I've accomplished most of the goals here, with the exception of redirect/jailing them to their directory.

The directories are stored in /home/ftp and that's what DefaultRoot is set to. I want each individual user to have and be jailed into their own directory. It doesn't appear that setting homedir in SQL has any effect. Upon logging into FTP with any user, it logs into the DefaultRoot with no directory jailing or redirect.

How do I accomplish this last task?

Best Answer

Try commenting out DefaultRoot I think it may override the values read from the database backend.

EDIT:

If DefaultRoot is set and anything other than ~ then the user will be jailed in a tree rooted at DefaultRoot.

If DefaultRoot is ~ then the user will be jailed in a tree rooted at theit home directory.