I know the DefaultRoot ~
setting that you can use to jail users into their home directories but I need to customize this.
When authenticating with proftpd I get the user's home-directory from ldap
via auth-pam
. I have no control over what the home-directory path will be but I need them to be on my glusterfs
which is a fusemount I have in /mnt/glusterfs
.
What I would love to have is that if I get a user's home as /some/directory
that proftpd would jail them into /mnt/glusterfs/some/directory
So basically I'd like to have something like DefaultRoot /base/path/~
If you guys (and or gals) can think of any solution be it modifying code or whatever creative solution I'd be glad to hear it.
thanks in advance