↑↓ to navigate ↵ to open Esc to close Search by Algolia

You are reading the documentation of FileRun 2026.4.0, which is not released yet. It is subject to change, so do not use it for planning. Go to the documentation of FileRun 2026.3.0

Home folders

This page describes the home folders of the user accounts. It explains how to set the path of a home folder, which paths FileRun accepts, how to arrange the folders, and how the roles and the administrators build the paths from templates.

What a home folder is

A home folder is a folder on the file system of the server. An account has one home folder at most. In the file manager, the user finds the home folder under My drive, with all the folders inside it.

An account can also have no home folder. The file manager then does not show these items to the user of the account:

  • My drive
  • Media
  • the trash

The user can work only with these items:

  • the files and folders that other users shared with them, under Shared with me
  • the shared drives of which the user is a member, under Shared drives

Guest accounts never have a home folder. See Guest accounts.

Setting the path of a home folder

The path of the home folder is in the user window, in the Permissions tab, then in the Home folder tab. The field is Path.

  1. Open the control panel.
  2. Select Users → All users.
  3. Double-click the account. To create an account, click Add new instead.
  4. Open the Permissions tab, then the Home folder tab.
  5. Type the full path of the folder in Path. The help text of the field shows the folder in which FileRun is installed, as an example of a path on your server.
  6. Optional: click Check path.
  7. Click Save changes. For a new account, click Add user.

An empty Path means that the account has no home folder.

When the account has a role, the Home folder tab is disabled. The path then comes from the role. See The path template of a role.

Not every administrator sees the same fields:

  • The superuser and the regular administrators see Path and Check path.
  • An independent administrator without a home folder template sees Path, but not Check path. The path is inside the home folder of the independent administrator.
  • An administrator who has a home folder template sees neither of them. FileRun builds the path from the template.
  • An independent administrator does not see Path for an account whose home folder the superuser placed outside the home folder of the independent administrator. The tab shows "The home folder of this user is outside your home folder." and "Only the superuser can change the home folder of this user!" instead. When the independent administrator saves the account, the home folder stays as it is.

The cases of the administrators are described in The home folder template of an administrator.

Note

When the superuser has no home folder, the control panel opens the user window of the superuser, with the message "You will find the option under the Permissions tab."

Checking the path

When you click Check path, FileRun checks the path that is in the field, without saving it. The result appears under the button:

  • When the path breaks one of the rules for the path, the result contains the reason.
  • When the folder does not exist, the result contains the path in two colours. The part that exists is green, and each missing folder is red. The message "The folder will be created when saving the changes." follows.
  • When the folder exists, the result is "The path is valid.". When some accounts already have exactly this path, the result also contains the number of these accounts, for example "This path is currently assigned to 2 user accounts.".

When the folder does not exist

When you save the account, FileRun creates the folder, together with the missing folders above it. PHP must have the permission to create folders in that location. When FileRun cannot create the folder, it does not save the account, and it shows the message "Failed to create home folder!".

Files that every new home folder gets

FileRun can put the same files and folders into every home folder that it creates. Put them in the folder system/data/home_folder_template, inside the folder in which FileRun is installed. No setting creates this folder, so create it yourself.

  • FileRun copies the content of this folder only when it creates a home folder. A home folder that exists already does not get the files. A change in this folder does not reach the home folders that exist.
  • This also applies to the home folders of the accounts created by sign-up or by an authentication source, and to the new folders that a change of a path template creates.
  • The folders of the shared drives do not get these files.
  • When FileRun cannot copy the files, the message is "Failed to create home folder!".

Rules for the path

FileRun checks the path when you click Check path and when you save the account. When the path breaks a rule, FileRun does not save the account. The message is "The path you set for the user's home folder is not valid!", followed by the reason.

  • The path is a full path. On Linux, the path starts with a forward slash, for example /files/john.
  • On Windows, the path starts with a drive letter, for example C:/files/john. A path to a network location starts with two forward slashes, for example //server/files/john.
  • Use forward slashes (/), also on Windows. FileRun treats a backslash (\) as a forward slash.
  • The path cannot start with a dot.
  • The path cannot have a folder named . or .., for example /files/../john. FileRun also refuses a folder name that has only dots and spaces, such as ....
  • The path cannot lead to the root of the file system, such as / on Linux or C:/ on Windows.
  • The path cannot lead to the folder in which FileRun is installed, or to a folder inside it. When the folder does not exist yet, FileRun checks the nearest folder above it that exists.
  • The path cannot lead to a folder that contains the folder in which FileRun is installed. For example, when FileRun is installed in /var/www/html, FileRun refuses /var/www.

FileRun checks the last three rules on the folder that the path leads to, after it follows the symbolic links. So FileRun refuses a symbolic link that leads into the installation folder. It accepts a symbolic link inside the installation folder that leads to a folder outside it. FileRun ignores the letter case when it compares a folder with the installation folder.

FileRun also removes the spaces at the start and at the end of the path, and the slash at the end.

FileRun checks the rules each time an account is saved, also when the path does not change. So an account whose home folder breaks a rule, for example a folder inside the installation folder, cannot be saved until its path changes. To keep the files of such an account, move them on the server to a folder outside the installation folder, and type the new path. See Changing the path of an account.

FileRun does not refuse these paths:

Keeping the home folders private

Warning

Place the home folders outside the public folders of the web server. Anybody who knows the address of a file in a public folder can download the file directly from the web server, without signing in to FileRun. FileRun checks this only for the installation folder, and it refuses every folder inside the installation folder.

Folders with these names are often public, together with the folders inside them:

  • public_html
  • html
  • www
  • inetpub

For the other steps that protect the installation, see Securing the FileRun installation.

Accounts that see the same files

The same path

Two accounts with the same path see the same files. To keep the files of the users apart, give each account a different folder.

Home folders inside other home folders

An account sees every folder inside its home folder, also the home folders of other accounts. You can use this to let an administrator see the files of the users. For example:

Account Home folder
User A /storage/files/users/user_a
User B /storage/files/users/user_b
An administrator /storage/files/users
The superuser /storage/files
  • The administrator sees the folders user_a and user_b under My drive, with the files of the two users.
  • The superuser sees the folder users, with the files of the three other accounts. The superuser can also keep files next to the folder users. The other accounts cannot see these files.

A role with the path template /storage/files/users/{USERNAME} creates the folders of the users automatically. See The path template of a role.

In this layout:

  • The space used by an account counts every file in its home folder. So the files of the users count in the space used by the administrator. See Storage quotas.
  • When the administrator moves an item that a user shared to a place outside the home folder of that user, FileRun removes the share.
  • When you delete an account and check the option Permanently delete the users home folders., FileRun refuses the deletion while other accounts have their home folders inside the home folder of that account, or at the same path. See Deleting a user account.

Changing the path of an account

FileRun does not move the files when the path of an account changes. The old folder stays on the disk, with its files. After the change, the user sees the content of the new folder under My drive. When FileRun creates the new folder, the new folder is empty. To keep the files of the user, move them yourself, on the server, from the old folder to the new folder.

When you edit the path, FileRun shows the warning "Important: Changing this path will remove all of this user's shares.". When the path changes, FileRun removes these items of the user:

  • Every share that the user made. A guest account that has nothing else shared with it is deleted.
  • The web links that the user made to items in the old home folder.
  • The collections of the user.
  • The stars and the folder notification rules that the user had in the old home folder.

An account that had no home folder before the change loses nothing.

The path can also change when nobody edits the Path field:

  • You give the account another role. FileRun shows the warning "Changing the role can cause a home folder path change."
  • The path template of the role of the account changes.
  • An administrator changes a detail of the account that the path template of its role uses, and saves the account. For example, the username changes, and the template contains {USERNAME}. FileRun builds the path from the template every time that an administrator saves the account.
  • The home folder or the home folder template of the administrator who created the account changes. See The home folder template of an administrator.

A change that users make to their own details, in their account settings, does not change the path.

The path template of a role

Each account of a role gets a home folder that FileRun builds from the path template of the role. To set the template:

  1. Open the control panel.
  2. Select Users → Roles.
  3. Double-click the role.
  4. Open the Permissions tab, then the Home folder tab.
  5. Type the template in Path template.
  6. Click Save changes.

In the list of roles, the Home folder template column shows the template of each role.

A template cannot have a folder named . or ... FileRun refuses it with "The path cannot have a folder named "." or ".."!". The path that FileRun builds for each account must also follow the rules for the path.

An empty template means that the accounts of the role have no home folder. When you give such a role to an account that has a home folder, the account loses its home folder. It also loses the items that are listed in Changing the path of an account.

Warning

A template without a placeholder gives the same home folder to every account of the role. The users of these accounts see each other's files.

The placeholders

FileRun replaces each placeholder with a detail of the account:

Placeholder Replaced with Field in the user window
{USERNAME} the username Login → Username
{NAME} the first name and the last name, with a space between them Basic info → Name
{EMAIL} the e-mail address Basic info → E-mail address
{COMPANY} the company Basic info → Company
{DESCRIPTION} the note Basic info → Note

The help text of the field does not list {DESCRIPTION}, but FileRun replaces it as well.

For example, the template /storage/files/users/{USERNAME} gives the account john the home folder /storage/files/users/john.

  • The placeholders are not case-sensitive. {username} works in the same way as {USERNAME}.
  • In a value, FileRun replaces each of the characters \ / * ? < > | with an underscore (_). On Windows, it also replaces the characters " :.
  • FileRun removes the spaces and the dots at the start and at the end of a value.

When a value is empty, or contains only dots and spaces, FileRun refuses to save the account. The message contains the detail and the username of the account. For example: "The e-mail address of the user "john" cannot be used in the home folder path, because it is empty or has only dots and spaces."

When the template changes

When you save a role with a new template, FileRun builds the path of every account of the role again. When you edit the template, FileRun shows the warning "Important: Changing this path will update the home folder paths of all user accounts using this role. It will result in the automatic removal of all these users' shares."

  • Each account whose path changes loses its shares and the other items that are listed in Changing the path of an account. The files are not moved.
  • When FileRun cannot build or create the folder of one of the accounts, it refuses the whole change. The role keeps its old template, and the accounts keep their paths. The folders that FileRun created before the refusal stay on the disk, empty.
  • When the accounts of the role are independent administrators, the paths of the accounts that they created change too. In these paths, FileRun replaces the old home folder of the administrator with the new one. An account whose home folder is not inside the old home folder of the administrator keeps its path.

The roles of an independent administrator

An independent administrator can create roles. The template of such a role is a path inside the home folder of the independent administrator. For example, the independent administrator has the home folder /storage/clients/acme. The template {USERNAME} then gives the account john the home folder /storage/clients/acme/john.

When the independent administrator has a home folder template, that template applies instead. The independent administrator then does not see the Path template field.

An empty template means that the accounts of the role have no home folder, as for the other roles. When the independent administrator clears the template, the accounts of the role lose their home folders.

A role whose owner was deleted

On an installation that was updated from an earlier version, a role can belong to an independent administrator whose account no longer exists. The template of such a role is a path inside the home folder of that administrator, which FileRun no longer knows. The Home folder tab of the role window shows the warning "The owner of this role was deleted.". For such a role:

  • The accounts of the role keep their home folders. FileRun does not build their paths again.
  • A new account cannot get the role while the role has a template. FileRun refuses with "This role cannot be given to a new user account, because its owner was deleted. The superuser has to save the role with a full path template first.".
  • Only the superuser can change the template. Another administrator who changes it gets "Only the superuser can change the path template of this role, because its owner was deleted.".

To make it an ordinary role, the superuser types a full path in Path template, for example /storage/files/users/{USERNAME}, and saves the role. The role then belongs to nobody, and the accounts of the role move to the paths of the new template, as described in When the template changes. A save by the superuser that keeps the old template is refused with "The owner of this role was deleted. Type the path template again, as a full path, to save the role.".

The home folder template of an administrator

The superuser can give an administrator a home folder template. FileRun then builds the home folder paths of the accounts that the administrator creates and edits. To set the template:

  1. Open the user window of the administrator.
  2. Open the Permissions tab, then the Admin tab, then the Admin permissions tab.
  3. Type the template in Home folder template path.
  4. Click Save changes.

Only the superuser sees the Admin tab. The role window has the same field, in the same place. The template of a role applies to the administrators who have that role.

You can use the placeholders of the role template, and one more placeholder: {ADMUSERNAME}. FileRun replaces {ADMUSERNAME} with the username of the administrator. For example:

 1/storage/clients/{ADMUSERNAME}/{USERNAME}

When an administrator has a template:

  • In the user window, the administrator does not see Path and Check path. In the role window, the administrator does not see Path template.
  • When the administrator creates or saves an account, FileRun builds the path of that account from the template. The template applies also to an account that has a role.
  • The template is a full path, also for an independent administrator. FileRun does not add the home folder of the administrator to it.
  • The template cannot have a folder named . or ... FileRun refuses it with "The path cannot have a folder named "." or ".."!".
  • A regular administrator cannot have the permission User can manage roles.. FileRun refuses it with the message "The permission to manage roles cannot be granted if a "Home folder template path" is set."
  • The superuser can type another path for such an account. When the administrator saves the account later, FileRun builds the path from the template again.

When the field is empty, the administrator types the paths. The tip of the field says "Leave the field empty to allow the admin to set the paths manually."

  • A regular administrator types the full path, in the same way as the superuser.
  • An independent administrator types a path inside their own home folder. The help text of Path is "This folder will be automatically created in your home folder, if it doesn't exist already." The user window shows the path without the part that is the home folder of the administrator.

For example, the independent administrator has the home folder /storage/clients/acme, and types john. The account then gets the home folder /storage/clients/acme/john.

An independent administrator without a template places the accounts only inside their own home folder:

  • FileRun refuses a path that leads outside that folder, for example with ... The message is "The path you set for the user's home folder is not valid!".
  • An independent administrator who has no home folder cannot give a home folder to the accounts that they create. FileRun refuses every path, also the path that comes from the template of a role. The accounts can still be created without a home folder.
  • The superuser can place such an account in another folder. The independent administrator then cannot change its home folder. See Setting the path of a home folder.

When the template or the home folder of an administrator changes

In these cases, FileRun changes the paths of the accounts that an independent administrator created:

  • The superuser changes the template of the independent administrator. FileRun builds the path of every account again, from the new template.
  • The username of the independent administrator changes, and the template contains {ADMUSERNAME}. FileRun builds the paths again in the same way.
  • The home folder of an independent administrator without a template changes. In the paths of the accounts, FileRun replaces the old home folder of the administrator with the new one. This applies only to the accounts whose home folder is inside the old home folder of the administrator. An account that the superuser placed in another folder keeps its path. When the home folder of the administrator is removed, every account keeps its path.

In each case, the files are not moved. Each account whose path changes loses its shares and the other items that are listed in Changing the path of an account.

FileRun changes the paths of all these accounts, or of none of them. When FileRun cannot build the path of one account, it refuses to save the account of the administrator, and nothing changes: the administrator keeps the old values, and every account keeps its path. The message names the account to correct. For example, the template contains {COMPANY}, and an account has no company: "The company of the user "john" cannot be used in the home folder path, because it is empty or has only dots and spaces."

When the superuser removes the template, the accounts keep their paths.

For a regular administrator, a change of the template does not change the paths of the existing accounts. The new template applies to an account the next time that the administrator saves the account.

When you edit the template, FileRun shows this warning: "Important: For an independent admin, changing this path updates the home folder paths of all the user accounts created by this admin. For a regular admin, the new path is applied to a user account the next time this admin saves the account. A user account whose home folder path changes has all its shares removed automatically."

Accounts created by sign-up or by an authentication source

An account that a visitor creates on the sign-up page gets the role that is chosen under Users → Settings → Sign up. FileRun builds the home folder of the account from the path template of that role. See User sign-up.

An account that an authentication source creates at the first sign-in gets the role that is chosen in the option Role of new user accounts of the source. FileRun builds the home folder of the account from the path template of that role. The LDAP plugin can take the path from the homeDirectory attribute of the directory instead. FileRun reads this attribute only when it creates the account. See LDAP Authentication and Authentication integration.

In both cases, FileRun creates the folder when it creates the account. When a placeholder of the template has an empty value, FileRun does not create the account. For example, the sign-up fails when the template contains {COMPANY} and the visitor does not type a company name.

FileRun also checks the path with the rules for the path. When the path breaks a rule, FileRun does not create the account, and the message contains "Failed to create home folder!".

A missing home folder

The folder of an account can be missing from the disk. For example, somebody deleted the folder on the server, or a storage is not mounted. In this case:

  • The file manager shows the user the message "There is a technical problem with your account! Please contact the server administrator!".
  • In the list of users, the Home folder column shows the path in red, with the tooltip "The user's home folder is missing!". The independent administrators do not see this column.

FileRun does not create the folder again when the user signs in. Create the folder again on the server, or make the storage available again.

Access to folders outside the home folder

A user can work with files outside their home folder in two ways:

  • Another account shares a folder with the user. The folder then appears under Shared with me. To give a user access to a folder that is outside the home folders of the users, sign in with an account whose home folder contains that folder, for example the superuser. Then share the folder. See Sharing with users and groups.
  • The user is a member of a shared drive. See Shared drives.

The space quota

The Space quota field is in the same tab as Path. The quota limits the space that the account can use in its home folder and in its trash. See Storage quotas.