I would like to know if it's possible to set-up a Linux FTP server to allow anonymous log-in, and also to place that anonymous user in a chroot jail whose root is somehow based on the anonymous log-in credentials.
For example, I would like to be able to tell someone to log-in to my FTP server with the credentials, username anonymous
and password xt66ach883a
, and for the server to automatically place that anonymous user in a chroot jail whose root is /ftp/xt66ach883a
.
Additionally, if the intended chroot jail root folder does not exist, I would like to have it automatically created.
If anyone has achieved a similar set-up before, or could point me in the right direction, I'd be very grateful for your advice.