Skip to main content
Version: 3026.10 / 3026.11-mp

Share Parameters

The following parameters are in the [share] sections of the configuration file

access_based_enumeration​

Controls access-based enumeration for the share.

Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Enables access based enumeration for the share.
  • false: Disables access based enumeration for the share.

Default Value: false

administrative​

Designates the share as an administrative share. Used in conjunction with netname.

Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Designates share as an administrative share.
  • false: Makes it a regular share.

Default Value: false

audit_level​

Controls the audit level for the share.

Applies to:SMB

Value Type: integer

Default Value: none

Examples:

  • 1 sets the audit level to 1 for the share.
  • 3 sets the audit level to 3 for the share.

ca​

Enables or disables the persistent file handle database for the share. Used in conjunction with ca_params.

Overrides Global Parameter: ca
Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Enables the persistent file handle database for the share.
  • false: Disables the persistent file handle database for the share.

Default Value: false

ca_params​

Controls the behavior of the persistent file handle database for the share. Used in conjunction with ca.

Applies to:SMB

Value Type: string

Possibly Overrides Global Parameter: ca_path
This parameter is only required when Fusion SMB is configured as an active-passive cluster.
The path parameter is only needed when ca_db is configured with the legacy fs option, during a rolling upgrade from 3024.3.22.6+ to 3024.10.0 or newer, or in standalone configurations (without scale-out).

Value Format: [<path>][,durable]

  • <path> specifies the path on a shared storage where Fusion SMB stores its persistent file handle database for this share. This path must be accessible by all nodes in Fusion SMB cluster to support continuous or high availability. This value overrides the global ca_path parameter for this share.
  • durable is an optional flag that indicates whether durable handles on this share should be stored in the persistent file handle database.

Default Value: <ca_path>/<netname>, as determined by the global ca_path parameter and the share's netname parameter.

Examples:

  • /mnt/shared/ca stores the persistent file handle database in /mnt/shared/ca/<share_name> for each share where continuous availability is enabled.

case_insensitive​

Controls case sensitivity for the share.

Overrides Global Parameter: case_insensitive
Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Makes file operations on the share case-insensitive.
  • false: Leaves file operations on the share case-sensitive.

Default Value: as set in the global configuration.

create_mask​

Controls the maximum POSIX permissions for files created on the share.

Applies to:SMBNFS

Value Type: string

Value format: <mask>
Where <mask> is a string of four octal digits, representing the permission bits the POSIX file permissions are masked against. The resulting permissions are calculated as a bitwise AND between the POSIX file permissions and the create mask. Consequently, this value represents the maximum POSIX permissions that would be applied to the file at creation.

Default value: 0744

Examples:

  • 0744 - The resulting permissions will range between 0000 and 0744, ensuring that the file is at most readable by group and others, while owner will have the full set of permissions.
  • 0644 - The resulting permissions will range between 0000 and 0644, ensuring that the file is at most readable by group and others, while owner will not have execute permissions.
  • 0750 - The resulting permissions will range between 0000 and 0750, ensuring that the file is at most readable and executable by group, others will not have any permissions, and the owner will have the full set of permissions.

compress_data​

Controls advertising of SMB compression support for the share when a client connects to the share.

Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Enables advertising SMB compression support for the share.
  • false: Disables advertising SMB compression support for the share.

Default Value: false

compression_deny​

Controls which files should not be compressed with SMB compression enabled.

Applies to:SMB

Value Type: string

Value Format: <pattern>|<pattern>|...

  • Patterns are separated by |.
  • A pattern can include the ? wildcard to match a single character
  • A pattern can include the * wildcard to match any number of characters

Examples:

  • * matches all files.
  • *.tmp|*.bak matches files with the .tmp or .bak extension.
  • *.foo|*.bar|*foobar* matches files that have the .foo or .bar extension, or contain the string foobar.

default_acl​

Defines default Windows ACL with Windows security mode on newly-created files and directories.

Applies to:SMBNFS

Value Type: string

Value format: <security_descriptor>
Where <security_descriptor> is a Windows Security Descriptor that defines the default DACL for newly created files and directories. The descriptor can be specified either as an SDDL string, or as a self-relative Security Descriptor encoded as a hexadecimal string.
The default ACL is used only when security = windows, and the SMB client does not provide an explicit Security Descriptor on create, and the parent directory does not have inheritable ACEs. If inheritable permissions are present on the parent directory, those take precedence over default_acl. Deny (D) ACEs are not supported when map_acls = posix-acl or map_acls = posix-std; use an xattr-based ACL backend if Deny entries are required.

Default value: D:(A;OICINPIO;GA;;;CO)(A;OICINPIO;GA;;;SY)

Examples:

  • D:(A;OICINPIO;GA;;;CO)(A;OICINPIO;GRGX;;;CG)(A;OICINPIO;GRGX;;;WD) - Grants Full Control to the creator/owner, and Read+Execute (GRGX) to the primary group (CG) and Everyone (WD) for both files and directories. This is similar to 0755.
  • D:(A;OICINPIO;GA;;;CO)(A;OINPIO;GR;;;CG)(A;CINPIO;GRGX;;;CG)(A;OINPIO;GR;;;WD)(A;CINPIO;GRGX;;;WD) - Grants Full Control to the creator/owner. For files, the primary group and Everyone have Read (GR) only; for directories, they have Read+Execute (GRGX). This roughly corresponds to files with 0744 and directories with 0755.
  • D:(A;OICINPIO;GA;;;CO)(A;OICINPIO;GRGWGX;;;WD) - Grants Full Control to the creator/owner and Read+Write+Execute (GRGWGX) to Everyone for both files and directories, approximating 0777-style permissions.

Microsoft provides an SDDL translator module within PowerShell for system administrators to convert SDDL into a text representation.

dfs​

Controls the share's inclusion in Distributed File System (DFS).

Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Enables share's inclusion in DFS.
  • false: Disables share's inclusion in DFS.

Default Value: false

directory_mask​

Controls the maximum POSIX permissions for directories created on the share.

Applies to:SMBNFS

Value Type: string

Value format: <mask>
Where <mask> is a string of four octal digits, representing the permission bits the POSIX directory permissions are masked against. The resulting permissions are calculated as a bitwise AND between the POSIX directory permissions and the create mask. In other words, this value represents the maximum POSIX permissions that would be applied to the directory at creation.

Default value: 0744

Examples:

  • 0744 - The resulting permissions will range between 0000 and 0744, ensuring the directory will be at most readable by group and others, while user will have the full set of permissions.
  • 0644 - The resulting permissions will range between 0000 and 0644, ensuring the directory will be at most readable by group and others, while owner will not have list permissions.
  • 0750 - The resulting permissions will range between 0000 and 0750, ensuring the directory will be at most readable and listable by group, others will not have any permissions, and the owner will have the full set of permissions.

enable_oplock​

Controls opportunistic locking behavior for the share.

warning

This parameter is deprecated. Use oplock instead.

Overrides Global Parameter: enable_oplock
Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Allows the client to acquire opportunistic locks (oplocks) on share's files.
  • false: Disables opportunistic locks (oplocks) on share's files.

Default Value: true

encrypt_data​

Controls encryption in transit for the share.

Overrides Global Parameter: encrypt_data
Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: enable data transfer encryption on the share.
  • false: disable data transfer encryption on the share.

Default Value: as set in the global configuration.

files_allow​

Controls which files are allowed when using veto files.

Applies to:SMB

Value Type: string

Value Format: <pattern>|<pattern>|...

  • Patterns are separated by |.
  • A pattern can include the ? wildcard to match a single character
  • A pattern can include the * wildcard to match any number of characters

Default Value: *

Examples:

  • * matches all files.
  • *.tmp|*.bak matches files with the .tmp or .bak extension.
  • *.foo|*.bar|*foobar* matches files that have the .foo or .bar extension, or contain the string foobar.

files_deny​

Controls which files are not allowed when using veto files.

Applies to:SMB

Value Type: string

Value Format: <pattern>|<pattern>|...

  • Patterns are separated by |.
  • A pattern can include the ? wildcard to match a single character
  • A pattern can include the * wildcard to match any number of characters

Default Value: none

Examples:

  • * matches all files.
  • *.tmp|*.bak matches files with the .tmp or .bak extension.
  • *.foo|*.bar|*foobar* matches files that have the .foo or .bar extension, or contain the string foobar.

force_create_mode​

Controls the minimal POSIX permissions for files created on the share.

Applies to:SMBNFS

Value Type: string

Value format: <mode>
Where <mode> is a string of four octal digits, representing the permission bits the POSIX file permissions are masked against. The resulting permissions are calculated as a bitwise OR between the POSIX file permissions and the create mode, after the file mask has been applied, as defined in create_mask has been applied. In other words, this value represents the minimum POSIX permissions that would be applied to the file at creation.

Default value: 0000

Examples:

  • 0000 - The resulting permissions will range between 0000 and 7777, ensuring the file will be at least readable by group and others, while user will have the full set of permissions.
  • 0644 - The resulting permissions will range between 0644 and 7777, ensuring the file will be at least readable by group and others, while owner will not have execute permissions.
  • 4644 - The resulting permissions will range between 4644 and 7777, ensuring the file will be at least readable and executable by group, others will not have any permissions, and the owner will have the full set of permissions. It will also have setuid, signifying that the file will be executed with the permissions of its owner.

force_directory_mode​

Controls the minimal POSIX permissions for directories created on the share.

Applies to:SMBNFS

Value Type: string

Value format: <mode>
Where <mode> is a string of four octal digits, representing the permission bits the POSIX directory permissions are masked against. The resulting permissions are calculated as a bitwise OR between the POSIX file permissions and the create mode, after the directory mask has been applied, as defined in directory_mask has been applied. In other words, this value represents the minimum POSIX permissions that would be applied to the directory at creation.

Default value: 0000

Examples:

  • 0000 - The resulting permissions will range between 0000 and 7777, ensuring the directory will be at least readable by group and others, while user will have the full set of permissions.
  • 0644 - The resulting permissions will range between 0644 and 7777, ensuring the directory will be at least readable by group and others, while owner will not have list permissions.
  • 2644 - The resulting permissions will range between 2644 and 7777, ensuring the directory will be at least readable and listable by group, others will not have any permissions, and the owner will have the full set of permissions. It will also have setgid, signifying that the directory will inherit the group of the parent directory.

force_level2oplock​

Allows to force opportunistic locking to be level 2 (read-only) for the share.

warning

This parameter is deprecated. Use oplock instead.

Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Indicates that the server would only issue level 2 (read-only) opportunistic locks when an oplock is requested by the client. This can increase performance when the workload mostly consists of read operations.
  • false: Indicates that the server would issue opportunistic locks of any type when requested by the client.

Default Value: false

hidden​

Enables/disables hiding the share.

Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Hides a share.
  • false: Makes a share visible.

Default Value: false

hosts_allow​

Controls which hosts are allowed to access the share when using host-based access control.

Applies to:SMB

Value Type: string

Value Format: <IP|CIDR>,<IP|CIDR>,...

  • Values are separated by ,.
  • An IP address or a subnet in CIDR notation.
All hosts are allowed by default.

Examples:

  • 192.168.2.0/24 matches all IP addresses in the range of 192.168.2.0 to 192.168.2.255.
  • 10.0.0.1 matches only host 10.0.0.1.
  • 192.168.2.0/24,10.0.0.1 matches all IP addresses in the range of 192.168.2.0 to 192.168.2.255 and host 10.0.0.1.

hosts_deny​

Controls which hosts are denied access to the share when using host-based access control.

Applies to:SMB

Value Type: string

Value Format: <IP|CIDR>,<IP|CIDR>,...

  • Values are separated by ,.
  • An IP address or a subnet in CIDR notation.
All hosts are allowed by default.

Examples:

  • 192.168.2.0/24 matches all IP addresses in the range of 192.168.2.0 to 192.168.2.255.
  • 10.0.0.1 matches only host 10.0.0.1.
  • 192.168.2.0/24,10.0.0.1 matches all IP addresses in the range of 192.168.2.0 to 192.168.2.255 and host 10.0.0.1.

map_acls​

Controls the manner in which ACLs are stored for the files.

Applies to:SMBNFS

Value Type: string

Value Format: <method>[,<method>,...]

  • Values are separated by ,.

  • A <method> can be one of the following:

    • xattr[:<variant>]: Store the ACLs in a dedicated extended attribute. Optional argument <variant> specifies the name of the extended attribute and the format used to save the ACLs:

      • raw: Use the self-relative security descriptor in Fusion SMB specific extended attribute user.tsmb.$sd (default).
      • v3: Use version 3 of the Samba extended attribute security.NTACL without duplication in POSIX ACL.
      • v4: Use version 4 of the Samba extended attribute security.NTACL without duplication in POSIX ACL.
    • native: Store the ACLs natively on the file system, if supported. Use this option if the underlying file system is NTFS, or another private VFS module that supports these attributes.

    • posix-acl[:map_full_control]: Attempt to convert between Windows ACLs and POSIX ACLs with best-effort mapping. By default, POSIX r, w, and x bits are mapped individually to the corresponding Windows generic read, write, and execute rights (GENERIC_READ, GENERIC_WRITE, GENERIC_EXECUTE). If map_full_control is specified, a POSIX entry that grants all three rwx bits is instead presented to Windows as Full Control (GENERIC_ALL), while Windows Full Control maps back to POSIX rwx. This applies per entry to the owner, group, and others alike, not only the owner. The mapping is approximate rather than an exact one-to-one equivalence: Windows Full Control (GENERIC_ALL) is broader than the sum of the generic read, write, and execute rights (GENERIC_READ | GENERIC_WRITE | GENERIC_EXECUTE), because it additionally implies rights such as delete, change permissions (WRITE_DAC), and take ownership (WRITE_OWNER).

    • posix-std[:<parts>][:<option>...]: Map Windows ACLs to and from the standard POSIX owner, group and permission bits (mode) of the file. Optional argument <parts> selects which parts of the security descriptor this method handles, as any combination of:

      • O: Owner.
      • G: Group.
      • D: Discretionary ACL (DACL), mapped to the POSIX permission bits.

      If <parts> is empty or omitted, all of them are handled. The optional colon-separated <option> arguments are:

      • ro: Read-only. The POSIX properties are only read, never changed.
      • map_full_control: Map POSIX rwx to Full Control (nomap_full_control disables it).
      • map_zero_to_none: Omit the allow ACE of a principal without any rwx permissions (nomap_zero_to_none keeps it).
      • noinherit: Do not apply inheritance to the POSIX permissions.
    • xattr, posix-acl: This method means xattr is preferred, with posix-acl used only as a fallback. ACLs stored in extended attributes (xattr) are usually more detailed than the best-effort mapping of Windows ACLs to POSIX ACLs (posix-acl). As a result, if ACLs are present in xattr, they are always used. posix-acl is only used in this case if no ACLs are found in xattr.

    • posix-acl, xattr: This method gives priority to posix-acl, with xattr as the fallback. If only one backend is available, it is used directly. If both are available, the system must decide between them. Since xattr is generally more detailed, the two are first compared: if the ACLs in xattr and posix-acl are the same, xattr is chosen. If they differ, posix-acl is chosen because it was listed first. This comparison is only possible with xattr:v4, which supports hashing. With xattr:v3, no comparison is made, and posix-acl always overrides xattr when both are present.

  • A <method> can have the optional argument mode=<value>, for example native:mode=set. This argument sets how the server applies a mode (POSIX permission bits) to an NFSv4 ACL. Only native supports it now. The <value> can be one of the following:

    • merge: Change only the OWNER@, GROUP@ and EVERYONE@ entries of the ACL (default). The other named entries are preserved. Thus, a new file keeps the ACL that it inherits from its parent directory.
    • set: Apply the mode with a plain chmod() without updating the existing ACL from it. Depending on the file system, it may replace the ACL with an ACL derived from the mode only.

Default Value: posix-std:OG, xattr:raw, posix-std:D:ro

  • posix-std:OG: The owner and group are stored as the POSIX owner and group of the file.
  • xattr:raw: The complete security descriptor, including owner, group and permissions, is stored in the Fusion SMB specific extended attribute user.tsmb.$sd.
  • posix-std:D:ro: The POSIX permission bits (mode) are read-only. They are used when no ACL is found in the extended attribute, but they are never changed.
note

With the default value, the server does not change the POSIX permission bits of a file. To let the server change them, configure a method that can write them, for example posix-std:OG, xattr:raw, posix-std:D or xattr:v4, posix-acl.

Applies to:NFS
note

With the default value, a mode requested by an NFS client, for example in the attributes of an OPEN with OPEN4_CREATE or in a SETATTR, is not applied to the POSIX permission bits, and a newly created file gets the default permission bits instead. The server logs an informational message when this happens. To apply the requested mode, configure a method that can change the POSIX permission bits, as described above.

Examples:

  • xattr:raw: Stores the ACLs in the default Fusion SMB specific extended attribute.
  • native: Stores the ACLs natively on a supported file system.

map_attributes​

Controls the manner in which Windows attributes are stored for the files.

Applies to:SMBNFS

Value Type: string

Value Format: <method>[,<method>,...]

  • Values are separated by ,.

  • A <method> can be one of the following:

    • native: Store attributes natively on the file system, if supported. Use this option if the underlying file system is NTFS, or another private VFS module that supports these attributes.
    • xattr[:<version>]: Use Samba-compatible extended attribute user.DOSATTRIB to store the attributes. The optional <version> parameter specifies the version of the extended attribute format to use:
      • v3: Use the Samba 3.5 to 4.10 format.
      • v4: Use the Samba 4.11 to 4.16 format (default).
      • v5: Use the Samba 4.17 or newer format.
    • filename:<attributes>:<pattern>: Treat files matching <pattern> as always having the attributes specified in <attributes>:
      • <attributes> is a non-delimited combination of:
        • A: Archive.
        • S: System.
        • H: Hidden.
      • <pattern> is a shell-style wildcard pattern that matches the file name.
      note

      The only currently supported <pattern> is .*.

    • posix-exec:<attributes>: Map attributes to POSIX execute permission bits, where <attributes> is a non-delimited combination of:
      • A: Archive, stored in the user's execute permission bit (u+x).
      • S: System, stored in the group's execute permission bit (g+x).
      • H: Hidden, stored in the other's execute permission bit (o+x).
      note

      This is a legacy method and should be used with care. This method doesn't affect directories, and assumes that the execute permission bits are not used for their original purpose, and are only modified by Fusion SMB.

Default Value: xattr:v4

Examples:

  • xattr,filename:HS:.*: Uses the default Samba v4 extended attributes format, and treat all dot files as having the Hidden and System attributes.

named_streams​

Enables/disables named streams for the share.

Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Enables named streams on the share.
  • false: Disables named streams on the share.

Default Value: true

netname​

Sets the name by which the share is identified and accessed.

Applies to:SMBNFS

Value Type: string

note

This name is used for Fusion NFS shares, unless overridden by global or per-share nfs_export_name.

Default Value: none

Examples:

  • sh1 sets the net name to sh1.
  • MyShare sets the net name to MyShare.

nfs_auth_flavors​

Default NFS security flavors that a share allows, as a comma-separated list.

Potentially Overrides Global Parameter: nfs_auth_flavors
Applies to:NFS

Value Type: string

Value Format: <flavor>[,<flavor>,...]

  • Values are separated by ,.
  • A <flavor> can be one of the following:
    • none: AUTH_NONE
    • sys: AUTH_SYS
    • krb5: Kerberos authentication (RPCSEC_GSS)
    • krb5i: Kerberos with integrity protection
    • krb5p: Kerberos with privacy (encryption)
note

All NFS requests with an auth flavor that is not in the list fail on the share.
The per-share nfs_auth_flavors list takes precedence over the global list.

Default Value: none, sys, krb5p, krb5i, krb5

nfs_export_name​

Whether and under which name the share is exported over NFS.

Potentially Overrides Global Parameter: nfs_export_name
Applies to:NFS

Value Type: string

Value Format: controls whether and under which name the share is exported over NFSv4:

  • netname — export under the share's net name (a share named public is mounted as <server>:/public).
  • path — export under the share's filesystem path.
  • none — do not export the share over NFS.

Default Value: global nfs_export_name, if set. netname otherwise.

nfs_idmap​

NFSv4 owner/group wire form for the share.

Applies to:NFS

Value Type: boolean

Value Format: selects the NFSv4 owner/group wire form:

  • false — bare numeric UIDs/GIDs (RFC 8881 section 5.9); no NFSv4 ID-mapping domain is required.
  • true — the user@domain string form, which requires a matching ID-mapping domain on the server and its clients.

Default Value: false

nfs_squash​

Controls the NFS squash mode of this share, with the values of the global nfs_squash option.
Without the option, the share uses the global value.

Potentially Overrides Global Parameter: nfs_squash
Applies to:NFS

Value Type: string

Value Format: <value>
Where <value> can be one of the following:

  • root: A root caller gets the anonymous identity. A caller that is not root keeps its identity, with the anonymous GID in place of GID 0.
  • root_keep_groups: A root caller keeps its groups, but the anonymous IDs replace UID 0 and GID 0, and it drops its root privileges. A root caller without a POSIX UID gets the anonymous identity. The rule for other callers is the same as for root.
  • none: The server does not squash any caller. Each caller keeps its own identity.
  • all: Every caller gets the anonymous identity.
note

A root caller is an AUTH_SYS caller with UID 0, or a Kerberos principal with UID 0.
A Kerberos machine principal, whose name ends in "$", and the nfs/, host/ and root/ service principals also count as root.

note

An AUTH_NONE caller gets the anonymous identity in every mode.
With the default, NFS root callers do not get root access to the shares.

note

The share does not register with a value that is not valid.
To change the value, delete the share and add it again.

Default value: root

nfs_squash_id​

Controls the anonymous NFS identity, in the form uid:gid. The server gives this UID and GID to an NFS caller with an AUTH_NONE credential. It also gives them to a caller that nfs_squash maps to the anonymous identity.

Potentially Overrides Global Parameter: nfs_squash_id
Applies to:NFS

Value Type: string

Value Format: <uid:gid>

  • Each number is a decimal value below UINT32_MAX.
  • The value "uid:" sets only the UID, and ":gid" sets only the GID.
  • An unconfigured number in the share defaults to its global counterpart
  • A UID or GID of 0 gives super-user privileges to every caller with this identity.

Default value: 65534:65534 (or [global] nfs_squash_id, if set.)

Examples:

  • nfs_squash_id = 0: -> root:nogroup
  • nfs_squash_id = :0 -> nobody:root
  • nfs_squash_id = 0:0 -> root:root
  • nfs_squash_id = 65534:65534 -> nobody:nogroup

oplock​

Controls the type of opportunistic locks to be issued.

Potentially Overrides Global Parameter: oplock
Ignored when global parameter oplock is set to disabled
Applies to:SMB

Value Type: string

Value Format: <type>
<type> specifies the type of opportunistic lock to be issued:

  • none: Enables oplock/lease support and advertises the SMB2_GLOBAL_CAP_LEASING capability to clients. However, Fusion SMB server only grants NONE oplock/lease regardless of the value of RequestedOplockLevel.
  • read: Read-only oplock/lease support. This may be used to increase performance when the workload mostly consists of read operations.
  • all: Full oplock/lease support.

Default Value: all

path​

Sets the path or the name of the print queue for the share.

Applies to:SMBNFS

Value Type: string

Value Format: <path>
Where <path> is:

  • For shared directories: The directory on the server's file system to be shared.
  • For printer shares: The name of the print queue.

Default Value: none

Examples:

  • /export/sh1, if the share type is disk, indicates that the shared directory is /export/sh1.
  • paperjam, if the share type is printer, indicates that the print queue is called paperjam.

permissions​

Controls the permissions for the share.

Applies to:SMBNFS

Value Type: string

Value Format: <id>:<access>, <id>:<access>, ...

  • <id> is the identifier to which its corresponding <access> applies. It can be:

    • Predefined groups (corresponding to similarly named standard Windows groups):
      • everyone: All users, excluding anonymous users.
      • anonymous: Anonymous users in a null session.
      • authenticatedusers: All authenticated users.
    • Username: A user on the domain or local machine
      • Example: johndoe
    • Group:
      • POSIX groups (prefixed with @):
        • Example: @staff
      • Domain groups (no prefix):
        • Example: staff
    • Security identifier (SID), prefixed by *S-:
      • Example: *S-1-1-0
    note

    User and group specification dependens on the authentication backend defined by the userdb_type global parameter.

  • <access> defines the access level granted to the identified user or group. It can be one of the following:

    • no: Denies all access.
    • read: Grants Read, ReadAttributes, ReadControl, and Execute permissions.
    • change: Grants all permissions granted by read, as well as the Write, WriteAttributes, AppendData, and Delete permissions.
    • full: Grants all permissions granted by change, as well as the DeleteChild, WriteDAC, and WriteOwner permissions.
    note

    For printer shares, <access> must be set to either full or change.

important

If an <id> cannot be resolved to a SID, it is ignored if <access> is read, change, or full. However, if <access> is no, the permission applies to all users, rendering the share inaccessible.

Moreover, Fusion SMB will continue attempting to resolve the <id> against the underlying authentication backend, such as Active Directory, which may slow down access to the share.

To ignore unresolved <id> values, you can set the share's ignore_unresolved_share_deny_permission parameter to true. However, this may grant unintended access, for example if <id> was misspelled.

Default Value: everyone:read

Examples:

  • everyone:full grants full access to everyone.
  • johndoe:full, @staff:change grants full access to user johndoe, and change access to all users in the staff group.
  • anonymous:read grants read access to anonymous users.

recycle_bin​

Controls the recycle bin for the share.

Applies to:SMBNFS

Value Type: boolean

Value Format: true|false

  • true: Enables the recycle bin.
  • false: Disables the recycle bin.

Default Value: false

recycle_bin_params​

Controls the path for the recycle bin, if enabled.

Applies to:SMBNFS

Value Type: string

Value Format: path=<path>

<path> specifies the location of the recycle bin, if enabled. This path may be within the shared folder, or in another location. If <path> is configured inside of the share directory, SMB clients can access the files if they have sufficient access rights.

  • The recycle path may also be specified relative to the share, as in the default configuration.
  • The recycle bin does not get emptied automatically. The server administrator must configure space reclamation separately.
  • If a file with the same name and path already exists in the recycle bin, only the most recently deleted version is kept.
important

If the file cannot be moved by the server, it will be deleted instead.

Default Value: path=.recycle

Examples:

  • path=.trash, if the share is /sh1/, this places the recycle bin in /sh1/.trash.
  • path=/tmp/recycle, this specifies the recycle bin path in /tmp/recycle, outside of the share. SMB clients will be unable to view the contents of the recycle bin.
  • path=/sh1/recyclebin, this specifies the recycle bin explicitly in the share under /sh1/recyclebin.

remark​

Sets a human-readable comment for the share.

Applies to:SMBNFS

Value Type: string

Default Value: none

Examples:

  • My Awesome Share sets the remark to My Awesome Share.
  • Video Files sets the remark to Video Files.

security​

Sets the file security model for the share.

Applies to:SMBNFS

Value Type: string

Value Format: <mode>

Default Value: hybrid

security_descriptor​

Controls the permissions for the share using security descriptors.

Applies to:SMBNFS

Value Type: string

Value Format: SDDL string

Default Value: none

Examples:

  • O:SYG:SYD:(A;;FA;;;WD) grants full access to Everyone.
  • O:SYG:SYD:(A;;0x1200a9;;;WD) grants read only access to Everyone.
  • O:SYG:SYD:(A;;FA;;;AN) grants full access to anonymous users.

server​

Controls share scoping for the share.

Applies to:SMB

Value Type: string

Default Value: none (the share will be visible through any hostname)

Examples:

  • filesrv01 specifies that the share is visible only to clients connecting to \\filesrv01.

share_id​

A stable identifier of the share. NFS file handles contain the share ID, so with share_id set, the file handles of the share stay valid across server restarts and changes to the order of the shares in the configuration. Without it, the server allocates the share ID itself, in the order of the shares in the configuration.

The share_id can be set in the configuration file or with tsmb-cfg share add --share-id. It cannot be changed with tsmb-cfg share update, since a new share ID would make the existing NFS file handles of the share invalid.

Every share_id MUST be unique. The shares are registered in the order of the configuration, so a share_id can also collide with the share ID the server allocated to a share without share_id listed before it. The IPC$ share (see enable_ipc) counts as such a share listed before all others, so with IPC$ enabled a share_id of 1 collides with it. On a collision the server fails to start; configure a different share_id for one of the shares. At startup, values larger than the number of shares do not collide with the share IDs allocated by the server. A share_id SHOULD NOT be reused for another share after the original share has been removed.

NFS file handles also contain a hash of the name, path and scope of the share, so a handle of a removed share does not reach another share that later gets its share ID. If two shares give the same hash and not both have a share_id, the server logs a warning. This is very unlikely; configure a share_id for both shares, or rename one of them or change its path or scope.

Applies to:SMBNFS

Value Type: integer

Value Format: <id>
<id> is an integer in the range [1, UINT64_MAX - 1]. It MUST be unique among the shares.

Default Value: none (the server allocates the share ID itself, in the order of the shares in the configuration)

Examples:

  • 42 sets the share ID to 42.

spool_path​

For printer shares, the path to the spool directory on the server's file system.

Applies to:SMB

Value Type: string

Value Format: <path>
Where <path> is the path to the spool directory on the server's file system. When the share type is printer, this parameter must be set.

Default Value: none

Examples:

  • /var/spool/tsmb sets the spool path to /var/spool/tsmb.

type​

Set the type of the share. Only necessary for printer shares.

Applies to:SMBNFS

Value Type: string

note

Only disk is supported on Fusion NFS shares.

Value Format: disk|printer

  • disk: Indicates this share refers to a shared directory on the file system containing the share.
  • printer: Indicates that this share refers to a printer.

Default Value: disk

vfs​

Controls the VFS module used for file operations on the share.

Applies to:SMBNFS

Value Type: string

Value Format: <type>:<option>[,<option>,...]

  • <type> specifies the type of the VFS module to use. Currently, the supported options are:
    • libc: the default VFS module for Linux.
    • module:name=gpfs,path=path/to/tsmb_vfs_gpfs.so: A custom VFS layer for IBM Storage Scale (GPFS). Supports native ACL and Windows extended attribute mapping.
    • module:name=cephfs,path=path/to/tsmb_vfs_cephfs.so: A custom VFS layer for CephFS. It connects to the Ceph cluster directly through the native libcephfs library, so the server needs no kernel CephFS mount. The share's path is the directory inside the CephFS file system that the share exports. See CephFS module options.
  • <option> can be set to one of the following:
    • force_sync: opens each file with the O_SYNC flag to ensure that all data is written to disk before returning from a write operation. This option is useful for applications requiring strong durability guarantees, but it degrades performance. This option is required for clusters in active-passive mode.
    • nodirect: ignores client requests for direct I/O, bypassing the OS's page cache. This applies to FILE_NO_IMMEDIATE_BUFFERING on Windows, O_DIRECT on Linux, and F_NOCACHE on macOS. This option is likely to improve performance, but could disregard the client application's expectations, potentially resulting in undefined behavior. Use with caution.
    • lock: enables the propagation of byte-range locks to the underlying file system, allowing interoperability with other applications (such as NFS servers) that depend on byte-range locks. Note that this option may degrade performance.
    • nosharemodes: disables GPFS share modes when GPFS VFS module is in use. This option is useful if GPFS share modes cause file access issues. This must always be set when using GPFS.

Default Value: none (libc is configured to not use O_SYNC and to respect client's requests for direct I/O).

Examples:

  • libc:force_sync,nodirect,lock forces Fusion SMB to open all files with the O_SYNC flag, to ignore client's requests for direct I/O, and enables the propogation of byte-range locks to the file system.
  • module:name=gpfs,path=path/to/tsmb_vfs_gpfs.so,nosharemodes enables the IBM Spectrum® Scale (GPFS) VFS module, and disables share modes.
  • module:name=cephfs,path=/usr/lib/tuxera/tsmb_vfs_cephfs.so,conf_file=/etc/ceph/ceph.conf,client_id=smb,keyring=/etc/ceph/ceph.client.smb.keyring,filesystem=cephfs01 enables the CephFS VFS module, which connects to the cephfs01 file system as the Ceph user client.smb.

CephFS module options​

The CephFS module takes these options after the path of the module, separated by commas:

OptionDescription
conf_filePath to the Ceph configuration file. Default: /etc/ceph/ceph.conf.
client_idCeph user the server connects as, without the client. prefix (for example smb for client.smb).
keyringPath to the keyring file of that user. Overrides the keyring set in the Ceph configuration file.
filesystemName of the CephFS file system. Required when the cluster hosts more than one file system.
client_optionsOther Ceph client options, as a ;-separated list of key=value pairs, for example client_mount_uid=0;client_mount_gid=0.
widthNumber of Ceph client instances that serve the share in parallel, from 1 to 16. Default: 8. Each directory is always served by one instance, so a higher value helps only when clients work in several directories at once. Each instance uses its own cache memory.
note
  • The CephFS module requires the libcephfs library (libcephfs.so.2) on the server.
  • Set the global change_notify option to smb or none. CephFS doesn't report changes to the server.
  • The vfs value is limited to 256 characters. Put long settings in the Ceph configuration file instead of client_options.
  • Previous Versions (VSS) isn't supported on CephFS shares.
  • Clients see the CephFS directory quota of the share's root directory as the size of the share.
note

The nosharemodes option applies only to the GPFS module. Custom VFS modules such as GPFS and CephFS are included only in builds that provide them; if a module is not present in your build, Fusion SMB cannot load it.

vfs_clone_file_range​

Enables clone_file_range for server-side copy if supported.

Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Enables the use of filesystem-level copy offload when the source and destination files reside on the same share. This will only function if the underlying file system supports it. If not, the copy is done without copy offload and an error is printed in logs.
  • false: Disables filesystem-level copy offload.

Default Value: true

vfs_data_queues​

Controls the number of queues the share's private pool of VFS data threads is split into.

This parameter applies only when the share has a private VFS thread pool with separate data and metadata threads, that is, when both the share's vfs_data_threads and vfs_metadata_threads are non-zero.

Potentially Overrides Global Parameter: vfs_data_queues

Value Type: integer

Value Format: <queues>
<queues> specifies the number of queues the share's private pool of VFS data threads is split into. Each queue is served by its own subset of the threads configured with the share's vfs_data_threads, and the share's data (read and write) requests are distributed over the queues.

Default Value: 1

vfs_data_threads​

Controls the number of threads in the global pool for VFS data operations.

Potentially Overrides Global Parameter: vfs_data_threads
Applies to:SMBNFS

Value Type: integer

Value Format: <threads>
<threads> specifies the number of threads for VFS data operations in the share's pool. If set to 0:

  • If the share's vfs_metadata_threads is not set to 0, VFS operations will be executed on the share's data thread pool.
  • If the share's vfs_metadata_threads is also set to 0, VFS operations will be executed on the global pool, as specified in the global vfs_data_threads parameter.

Default Value: 1

vfs_fallocate_max​

Controls the maximum size of a file that can be allocated using fallocate().

Applies to:SMB

Value Type: integer

Value Format: <bytes>
<bytes> specifies the maximum size of a file that will be allocated using fallocate.

Default Value: 0

vfs_fallocate_min​

Controls the minimum size of a file that can be allocated using fallocate().

Applies to:SMB

Value Type: integer

Value Format: <bytes>
<bytes> specifies the minimum size of a file that will be allocated using fallocate.

Default Value: 0

vfs_metadata_threads​

Controls the number of threads in the global pool for VFS metadata operations.

Potentially Overrides Global Parameter: vfs_metadata_threads
Applies to:SMBNFS

Value Type: integer

Value Format: <threads>
<threads> specifies the number of threads for VFS metadata operations in the share's pool. If set to 0:

  • If the share's vfs_data_threads is not set to 0, VFS operations will be executed on the share's data thread pool.
  • If the share's vfs_data_threads is also set to 0, VFS operations will be executed on the global pool, as specified in the global vfs_metadata_threads parameter.

Default Value: 1

vfs_zerocopy_read​

Controls the use of zero-copy read operations for the share.

Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Enables zero-copy for read operations on the share.
  • false: Disables zero-copy for read operations on the share.

Default Value: false

vss​

Enables or disables Volume Shadow Copy Service (VSS) for the share. Used in conjunction with vss_params.

Overrides Global Parameter: vss
Applies to:SMB

Value Type: boolean

Value Format: true|false

  • true: Enables VSS on the share.
  • false: Disables VSS on the share.

Default Value: as set in the global configuration.

vss_params​

Controls additional parameters for Volume Shadow Copy Service (VSS) on the share. Used in conjunction with vss.

Overrides Global Parameter: vss_params
Applies to:SMB

Value Type: string

note

The following format applies only when when the default VSS implementation is used. If the underlying file system of the share has a different VSS implementation, use that file system's specific format to configure VSS.

Value Format: path=<path>[,share_root=<share_root>]

  • path=<path> (required): <path> is where the snapshot roots are located. Under this directory, subdirectories are expected named with the following timestamp format: @GMT-YYYY.MM.DD-hh.mm.ss (e.g., @GMT-2019.11.11-12.10.10, @GMT-2024.05.03-22.12.42, etc.).
  • share_root=<share_root> (optional): This parameter is used when you have multiple shares on the same volume, and when a snapshot is taken, it's taken for the entire volume. Hence, <share_root> specifies the the directory inside each snapshot subdirectory that contains the files for this particular share at that point of time. If not specified, the share root defaults to the root of the snapshot subdirectory.

Default Value: as set in the global configuration.

Examples:

  • path=/mnt/my-share-snapshots specifies that the snapshot roots are located in the /mnt/my-share-snapshots directory.
  • path=/mnt/snapshots,share_root=my-share specifies that the snapshot roots are located in the /mnt/snapshots directory, and the share root for each share is the /mnt/snapshots/@GMT-<timestamp>/my-share directory.