Create directory automatically

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
sverka75
500 Command not understood
Posts: 2
Joined: 2020-06-17 13:24
First name: Sven-Erik
Last name: Karlsson

Create directory automatically

#1 Post by sverka75 » 2020-06-17 13:31

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?

User avatar
boco
Contributor
Posts: 25185
Joined: 2006-05-01 03:28
Location: Germany

Re: Create directory automatically

#2 Post by boco » 2020-06-17 20:04

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 415 times
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

sverka75
500 Command not understood
Posts: 2
Joined: 2020-06-17 13:24
First name: Sven-Erik
Last name: Karlsson

Re: Create directory automatically

#3 Post by sverka75 » 2020-06-18 08:49

Thank you for the help boco. I'll try this.

Post Reply