Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.