Results 1 to 1 of 1

Thread: Proftpd + MySQL jailing user home directories

  1. #1
    Join Date
    Oct 2012

    Proftpd + MySQL jailing user home directories

    Hey ya'll don't know if this is possible or not. But I have a bunch of virtual users in a MySQL db and have ProFTPD setup to use the info to login ftp users. So a sample table entry is

    userid | passwd  | uid  | gid  | homdir               | shell
    ejacob | test123 | 4004 | 4400 | /home/someRandomUUID | /sbin/nologin
    the homedir column is /home/someRandomUUID

    now when the ftp user logs in it creates the user home dir in /home/someRandomUUID and jails the user to that directory using DefaultRoot.

    Is it possible to have ProFTPD append another location for all ftp user home dirs that it receives WITHOUT changing the table entry.

    So instead of /home/someRandomUUID I would like it to be located /var/ftpdata/home/someRandomUUID. I rather not mess with the table if all at possible. This helps separate my ftp user homedir and system user homedirs. Thanks for any input in this.
    Last edited by ezjacob; October 24th, 2012 at 02:31 PM.

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts