FreeCORE Documentation freecore.org

Permissions

This articled describes permissions configuration on FreeCORE.

Permissions control the actions users can perform on dataset contents. FreeCORE allows using both a simple permissions manager and editing a full Access Control List (ACL) for defining dataset permissions.

To change dataset permissions, go to Storage > Pools > Edit Permissions for a dataset.

Basic Permissions Editor

The Edit Permissions option allows basic adjustments to a datasets ACL.

StoragePoolsEditPermissionsBasic
Figure 1: Basic Permissions Editor

Options

The Owner section controls which FreeCORE user and group has full control of this dataset.

Access Mode defines the basic read, write, and execute permissions for the user, group, and other accounts that might access this dataset.

Advanced has several tuning options to set how permissions apply to directories and files within the current dataset.

To switch from the basic editor to the advanced ACL editor, click USE ACL MANAGER.

Access Control Lists

An Access Control List (ACL) is a set of account permissions associated with a dataset and applied to directories or files within that dataset. ACLs are typically used to manage user interactions with shared datasets and are created when a dataset is added to a pool.

When creating a dataset, you can choose how the ACL can be modified by selecting an ACL Mode:

To view an ACL, go to Storage > Pools > Edit Permissions for a nested dataset within a pool.

ACLManager
Figure 2: ACLManager
Tutorial Video

ACL Inheritance

The ACL for a new file or directory is typically inherited from the parent directory and is preserved when it is moved or renamed within the same dataset. An exception is when there are no File Inherit or Directory Inherit flags in the parent ACL owner@, group@, or everyone@ entries. These non-inheriting entries are added to the ACL of the newly created file or directory based on the Samba create and directory masks or the umask value.

Editing an ACL

Click ACL Manager to adjust file ownership or account permissions to the dataset. The first time viewing the ACL Manager a dialog suggests using basic presets. The ACL can be edited at any time after choosing to either apply a preset or create a custom ACL.

Choose Select a preset ACL and choose a preset. The preset options are OPEN, RESTRICTED, or HOME.

Choose Create a custom ACL to create a new list of customized permissions.

File Information

The selected User controls the dataset and always has permission to modify the ACL and other attributes. The selected Group also controls the dataset, but permissions change by adding or modifying a group@ ACE. Any user accounts or groups imported from a directory service can be selected as the primary in User or Group.

Access Control List (ACEs)

To add a new item to the ACL, define Who the Access Control Entry (ACE) applies to, and configure permissions and inheritance flags for the ACE.

ACL Details from Shell

To view an ACL information from the console, connect to a shell session and enter:

getfacl /mnt/path/to/dataset

Permissions

Permissions are divided between Basic and Advanced options. The basic options are commonly used groups of the advanced options.

Basic Permissions

Advanced Permissions

Inheritance Flags

Basic inheritance flags only enable or disable ACE inheritance. Advanced flags offer finer control for applying an ACE to new files or directories.

Basic Flags

Advanced Flags