Page 1 of 1

Create directory automatically

Posted: 2020-06-17 13:31
by sverka75
Is it possible to create a home directory automatically when I create a new user? I know how to create the directory and then setup that directory as a home directory for the new user account, but do I need to do this in those two steps?

Re: Create directory automatically

Posted: 2020-06-17 20:04
by boco
Create a user group and pre-configure everything you want for new users. For the Home directory, use a base path and specify the :u token (for username) at the end. Configure default permissions. Tick the "Autocreate" box.

Now, you only need to make new users members of that group, and their Home directories will be automatically created upon their first connection.
Two notes:
1. FileZilla Server must have full permissions for the base path so it can create the directories.
2. Don't use any characters in usernames that can't be part of a directory name. Otherwise, creation of that user's directory will fail.
fzs_grouptokenuse.jpg
fzs_grouptokenuse.jpg (54.51 KiB) Viewed 3393 times

Re: Create directory automatically

Posted: 2020-06-18 08:49
by sverka75
Thank you for the help boco. I'll try this.