ENABLE_REMOTE_DIR(4)

NAME
enable_remote_dir, enable_remote_dir_gid - control remote directory creation

SYNOPSIS
lctl set_param mdt.FSNAME*.enable_remote_dir=ENABLE
lctl set_param mdt.FSNAME*.enable_remote_dir_gid=GID

  PROPERTIES

Access Permissions
    644|-rw-r--r--

Scope
    Per-MDT device.

Config
    enable_remote_dir and enable_remote_dir_gid are always present for MDT devices.

Default
    enable_remote_dir=1
    enable_remote_dir_gid=0

DESCRIPTION
The boolean enable_remote_dir parameter controls whether clients can create remote directories that reference other MDTs within the filesystem. If ENABLE is 1 (or aliases on or true), then this functionality is globally enabled. If it is 0 or off then this functionality is globally disabled. The enable_remote_dir_gid parameter controls which user or group can create these directories.

The default GID value of 0 indicates that only the root user is allowed to create remote directories, while -1 indicates that any user is allowed to create them If GID is another value, it means users with the numeric Group ID that can do so. For example, this could be used to allow an admin group for administrators, or a remote_dir group for power users, using the numeric values of those groups.

The creation of remote directories may optionally be restricted on specific client nodes by a per-nodemap 'dne_ops' RBAC, see lctl-nodemap-modify(8) for details.

MODULES
This parameter is in the following modules:
    mdt.*.enable_remote_dir
    mdt.*.enable_remote_dir_gid

EXAMPLES

Enable remote directory creation for all users on the testfs filesystem:
        mgs# lctl set_param -P mdt.testfs-*.enable_remote_dir_gid=-1

AVAILABILITY
The enable_remote_dir and enable_remote_dir_gid parameters are available since release 2.4.0

SEE ALSO
mdt.enable_foreign_dir(4), lctl-nodemap-modify(8), lctl-set_param(8)