Yesterday I tried to set up a FTP server for internal use. We have a lot of mobile devices around in the 24.000 pallets warehouse, they are all connected via WLAN and some of them are of different make. We are running a self-developed app to connect to an internal SQL server and they sometimes need an update, but they have to pick it using different accounts. So I need to jail them into their own directory.
That let me ripping off the small amout of remaining hairs until I found a way how to do that and now I'm wondering if anybody has made it by using another way.
At first I tried the "DefaultRoot ~" directive in the parameter window inside the FTP server config, but that did not work. The user always ended up in the /srv/ftp directory (The logfile shows that) even if I activate the use of home directories under user/settings. These home dirs will be created when I add a new user, but proftp seems to ignore that (Or doesn't know about that, possibly the system-wide $HOME setting will not change).
I added a setting in /etc/default/openmediavault which reads OMV_PROFTPD_DEFAULTROOT="/media/<UUID-OF-RAID>/<sharename>/%u and that works. But I've read some rumors that future versions of proftpd may not support variables like "%u" anymore.
Any other ways to do that?