tsmb-cfg
The tsmb-cfg
command is used to manage the configuration of Fusion File Share Server while it is running.
By default, configuration changes made with the tsmb-cfg
command are not persisted across server restarts.
For changes made with the CLI to persist, you must start Fusion File Share Server in persistent configuration mode by running tsmb-server -p
.
Usage
tsmb-cfg [<option>,...] <command> [<parameter>,...]
Options
When running the tsmb-cfg
command, the following options can be used in conjunction with the subcommands:
-c <path>, --config <path>
: Wherepath
is the the path to the Fusion File Share Server configuration file.
When not specified, the default location to the configuration file is/etc/tsmb.conf
.--timeout <sec>
: Wheresec
is the total time (in seconds) to wait for an operation to complete. (Default: 200)
The following options will display an output and then exit:
-v, --version
: Displays the utility's version.-h, --help
: Display a help message.
tsmb-cfg global
The subcommands under tsmb-cfg global
are used to manage the global configuration of Fusion File Share Server, corresponding with the [global]
section of the configuration file.
tsmb-cfg global add
This subcommand is used to add a new global configuration parameter to the running Fusion File Share Server instance.
Usage: tsmb-cfg global add <parameter> [<value>]
Available parameters:
Parameter | Description |
---|---|
-l <value> or --listen <value> | Corresponds with the global listen parameter. Adds a network listening configuration.Value Type: string This parameter is required. Fusion File Share Server will fail to start unless a value is specified. Multiple Values Allowed This parameter can be specified multiple times in your configuration to enable multiple listening configurations—for example, to listen on both IPv4 and IPv6. Value Format:
Default Value: N/A. Value MUST be set. Examples:
|
-h or --help | Display a help message. |
tsmb-cfg global del
This subcommand is used to delete a global configuration parameter from the running Fusion File Share Server instance.
Usage: tsmb-cfg global del <parameter>
Available parameters:
Parameter | Description |
---|---|
-l <value> or --listen <value> | Corresponds with the global listen parameter. Removes a network listening configuration.<value> is a previously added listening configuration to be removed. |
-h or --help | Display a help message. |
tsmb-cfg global update
This subcommand is used to update a global configuration parameter of the running Fusion File Share Server instance.
Usage: tsmb-cfg global update <parameter> [<value>]
Available parameters:
Parameter | Description |
---|---|
-d <value> or --dialects <value> | Corresponds with the global dialects parameter. Sets the supperted SMB dialects.Mutually exclusive with: dialect_max Value Type: string Value Format:
Default Value: Examples:
|
-D <value> or --dialect_max <value> | Corresponds with the global dialect_max parameter. Sets the maximum supported dialect.Mutually exclusive with: dialects Value Type: string Value Format:
Default Value: Examples:
|
-t <value> or --durable_v1_timeout <value> | Corresponds with the global durable_v1_timeout parameter. Sets the timeout for V1 durable handles.Value Type: integer Value Format:
Default Value: Examples:
|
-T <value> or --durable_v2_timeout <value> | Corresponds with the global durable_v2_timeout parameter. Sets the default timeout for V2 durable handles.Value Type: integer Value Format:
Default Value: Examples:
|
--encrypt <value> | Corresponds with the global encrypt_data parameter. Controls whether the server should encrypt SMB messages in transit.Overridden by Per-Share Parameter: encrypt_data Value Type: boolean Value Format:
Default Value: |
--reject-unencrypted <value> | Corresponds with the global reject_unencrypted_access parameter. Controls whether the server should discard incoming unencrypted SMB messages.Value Type: boolean Value Format:
Default Value: |
--require-signing <value> | Corresponds with the global require_message_signing parameter. Controls whether the server should discard incoming unsigned SMB messages.Value Type: boolean Value Format:
Default Value: |
--access-based-share-enumeration <value> | Corresponds with the global access_based_share_enumeration parameter. Controls whether the server should hide shares during enumeration based on access permission.Value Type: boolean Value Format:
Default Value: |
--log-destination <value> | Corresponds with the global log_destination parameter. Sets the destination for log messages.Value type: Value format:
Default value: |
--log-level <value> | Corresponds with the global log_level parameter. Sets the default level of severity for log messages.Value type: Value format:
Default value: |
--log-params <value> | Corresponds with the global log_params parameter. Sets the configuration parameters for logging.Value type: Value format:
Default value: none. None of the formatting options are enabled. |
--smb2-credits-max <value> | Corresponds with the global smb2_credits_max parameter. Sets the number of SMB2 credits advertised to clients.Value Type: integer Value Format: Default Value: |
--shares-max <value> | Corresponds with the global shares_max parameter. Sets the maximum number of shares that can be configured.Value Type:: integer Value Format: Default Value: |
--sessions-max <value> | Corresponds with the global sessions_max parameter. Sets the maximum number of authenticated user sessions that are allowed to be established on the server.Value Type:: integer Value Format: Default Value: |
--userdb-idmap <value> | Corresponds with the global userdb_idmap parameter. Sets the POSIX ID Mapping method.Value Type: string Value Format:
Default Value: Examples:
|
--userdb-idmap-cache Clear | Clears the POSIX ID Mapping cache. |
--apple-extensions <value> | Corresponds with the global apple_extensions parameter. Controls whether the server should enable Apple extensions in the SMB protocol for macOS.Value Type: boolean Value Format:
Default Value: |
-h or --help | Display a help message. |
tsmb-cfg global list
This subcommand is used to list the global configuration parameters of the running Fusion File Share Server instance.
Usage: tsmb-cfg global list [<parameters>]
Available parameters:
Parameter | Description |
---|---|
-f <format> or --format <format> | <format> is the format in which to output the global configuration info. The supported formats are: raw , json (Default: raw ). |
-h or --help | Display a help message. |
tsmb-cfg global help
This subcommand is used to display the help message for the tsmb-cfg global
subcommands.
Usage: tsmb-cfg global help
tsmb-cfg share
The subcommands under tsmb-cfg share
are used to manage the shares configuration of Fusion File Share Server, corresponding with the [share]
section of the configuration file.
tsmb-cfg share add
This subcommand is used to add a new share to a running Fusion File Share Server instance.
Usage: tsmb-cfg share add <parameter> [<value>]
Mandatory Parameters
When adding a share, the following parameters are required:
Parameter | Description |
---|---|
-n <value> or --name <value> | Corresponds with the share netname parameter. Sets the name by which the share is identified and accessed.Value Type: string Default Value: none. Examples:
|
-p <value> or --path <value> | Corresponds with the share path parameter. Sets the path or the name of the print queue for the share.Value Type: string Value Format:
Default Value: none. Examples:
|
-s <value> or --spool-path <value> | Corresponds with the share spool_path parameter. Sets the path to the spool directory on the server's file system.Value Type: string Value Format: Default Value: none. Examples:
|
Additional Parameters
Parameter | Description |
---|---|
-h or --hidden <value> | Corresponds with the share hidden parameter. Controls whether the share is a hidden share.Value Type: boolean Value Format:
Default Value: |
--administrative <value> | Corresponds with the share administrative parameter. Controls whether the share is an administrative share.Value Type: boolean Value Format:
Default Value: |
--server <value> | Corresponds with the server parameter. Controls the server for share scoping.Value Type: string Default Value: none (the share will be visible through any hostname) Examples:
|
-A <value> or --audit-level <value> | Corresponds with the share audit_level parameter. Sets the audit logging level for the share.Value Type: integer Default Value: none Examples:
|
-c <value> or --ca <value> | Corresponds with the share ca parameter. Enables or disables the persistent file handle database for the share.Overrides Global Parameter: ca Value Type: boolean Value Format:
Default Value: |
-C <value> or --ca-params <value> | Corresponds with the share ca_params parameter. Controls the behavior of the persistent file handle database for the share.Value Type: string Possibly Overrides Global Parameter: ca_path This parameter is only required when Fusion File Share Server is configured as an active-passive cluster. Value Format:
Default Value: Examples:
|
--dfs <value> | Corresponds with the share dfs parameter. Controls whether the share should be visible in DFS.Value Type: boolean Value Format:
Default Value: |
--vss <value> | Corresponds with the share vss parameter. Enables or disables Volume Shadow Copy (VSS) for the share.Overrides Global Parameter: vss Value Type: boolean Value Format:
Default Value: as set in the global configuration. |
--vss-params <value> | Corresponds with the share vss_params parameter. Sets the VSS parameters parameters for the share.Overrides Global Parameter: vss_params 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:
Default Value: as set in the global configuration. Examples:
|
--case-insensitive <value> | Corresponds with the share case_insensitive parameter. Controls whether the share should be case-insensitive.Overrides Global Parameter: case_insensitive Value Type: boolean Value Format:
Default Value: as set in the global configuration. |
--oplock <value> | Corresponds with the share oplock parameter. Controls opportunistic locking (oplock) behavior for the share.Potentially Overrides Global Parameter: oplock Ignored when global parameter oplock is set to disabled Value Type: string Value Format:
Default Value: |
-l <value> or --force-l2oplock <value> | Deprecated. Use --oplock instead. Corresponds with the share force_level2oplock parameter. Controls opportunistic locking (oplock) behavior for the share.warning This parameter is deprecated. Use Value Type: boolean Value Format:
Default Value: |
--encrypt <value> | Corresponds with the share encrypt_data parameter. Controls whether encryption in transit should be enabled for the share.Overrides Global Parameter: encrypt_data Value Type: boolean Value Format:
Default Value: as set in the global configuration. |
--access-based-enumeration <value> | Corresponds with the share access_based_enumeration parameter. Controls whether the share should hide shares during enumeration based on access permission.Value Type: boolean Value Format:
Default Value: |
--permissions <value> | Corresponds with the share permissions parameter. Sets the permissions for the share.Value Type: string Value Format:
important If an Moreover, Fusion File Share Server will continue attempting to resolve the To ignore unresolved Default Value: Examples:
|
--security-descriptor <value> | Corresponds with the share security_descriptor parameter. Sets the security descriptor for the share.Value Type: string Value Format: SDDL string Default Value: none Examples:
|
-r <value> or --remark <value> | Corresponds with the share remark parameter. Sets a human-readable comment on the share.Value Type: string Default Value: none. Examples:
|
-t <value> or --type <value> | Corresponds with the share type parameter. Sets the type of the share.Value Type: string Value Format:
Default Value: |
-a <value> or --files-allow <value> | Corresponds with the share files_allow parameter. Sets the pattern of allowed files for veto files.Value Type: string Value Format:
Examples:
|
-d <value> or --files-deny <value> | Corresponds with the share files_deny parameter. Sets the pattern of denied files for veto files.Value Type: string Value Format:
Examples:
|
--compression-deny <value> | Corresponds with the share compression_deny parameter. Controls which files should not be compressed with SMB compression enabled.Value Type: string Value Format:
Examples:
|
-m <value> or --map-attributes <value> | Corresponds with the share map_attributes parameter. Controls the manner in which Windows attributes are stored for the files..Value Type: string Value Format:
Default Value: Examples:
|
--map-acls <value> | Corresponds with the share map_acls parameter. Sets the method for storing ACLs.Value Type: string Value Format:
Default Value: Examples:
|
-S <value> or --security <value> | Corresponds with the share security parameter. Sets the file security model for the share.Value Type: string Value Format:
Default Value: |
-v <value> or --vfs <value> | Corresponds with the share vfs parameter. Sets the VFS behavior for the share.Value Type: string Value Format:
Default Value: none ( Examples:
|
-z <value> or --vfs-zerocopy-write <value> | Corresponds with the share vfs_zerocopy_write parameter. Enables or disables zero-copy for writes.Value Type: boolean Value Format:
Default Value: |
-Z <value> or --vfs-zerocopy-read <value> | Corresponds with the share vfs_zerocopy_read parameter. Enables or disables zero-copy for reads.Value Type: boolean Value Format:
Default Value: |
--vfs-data-threads <value> | Corresponds with the share vfs_data_threads parameter. Sets the number of share specific VFS data threads.Potentially Overrides Global Parameter: vfs_data_threads Value Type: integer Value Format:
Default Value: |
--vfs-metadata-threads <value> | Corresponds with the share vfs_metadata_threads parameter. Sets the number of share specific VFS metadata threads.Potentially Overrides Global Parameter: vfs_metadata_threads Value Type: integer Value Format:
Default Value: |
--vfs-fallocate-min <value> | Corresponds with the share vfs_fallocate_min parameter. Sets the minimum threshold for using the fallocate() system call.Value Type: integer Value Format: Default Value: |
--vfs-fallocate-max <value> | Corresponds with the share vfs_fallocate_max parameter. Sets the maximum threshold for using the fallocate() system call.Value Type: integer Value Format: Default Value: |
--hosts-allow <value> | Corresponds with the share hosts_allow parameter. Sets the allowed hosts for host-based access control.Value Type: string Value Format:
Examples:
|
--hosts-deny <value> | Corresponds with the share hosts_deny parameter. Sets the denied hosts for host-based access control.Value Type: string Value Format:
Examples:
|
--create-mask <value> | Corresponds with the share create_mask parameter. Sets the maximum allowed POSIX permission for a file.Value type: Value format: Default value: Examples:
|
--force-create-mode <value> | Corresponds with the share force_create_mode parameter. Sets the minimum required POSIX permissions for a file.Value type: Value format: Default value: Examples:
|
--directory-mask <value> | Corresponds with the share directory_mask parameter. Sets the maximum allowed POSIX permission for a directory.Value type: Value format: Default value: Examples:
|
--force-directory-mode <value> | Corresponds with the share force_directory_mode parameter. Sets the minimum required POSIX permissions for a directory.Value type: Value format: Default value: Examples:
|
--enable-oplock <value> | Deprecated. Use --oplock instead.. Corresponds with the share enable_oplock parameter. Controls whether the share should enable oplocks.warning This parameter is deprecated. Use Overrides Global Parameter: enable_oplock Value Type: boolean Value Format:
Default Value: |
--named-streams <value> | Corresponds with the share named_streams parameter. Controls whether the share should enable named streams.Value Type: boolean Value Format:
Default Value: |
-h or --help | Display a help message. |
tsmb-cfg share del
This subcommand is used to remove a share from a running Fusion File Share Server instance, or to remove a scoped share.
Usage: tsmb-cfg share del -n <netname> [<parameter>,...]
Mandatory parameters:
Parameter | Description |
---|---|
-n <netname> or --name <value> | Corresponds with the share netname parameter. Sets the name by which the share is identified and accessed.Value Type: string Default Value: none. Examples:
|
Optional parameters:
Parameter | Description |
---|---|
--server <value> | Corresponds with the server parameter. Removes share scoping for the share, making it available through all hostnames.Value Type: string Default Value: none (the share will be visible through any hostname) Examples:
|
-h or --help | Display a help message. |
tsmb-cfg share update
This subcommand is used to update a share in a running Fusion File Share Server instance.
Usage: tsmb-cfg share update -n <netname> <parameter> [<value>]
Mandatory parameters:
Parameter | Description |
---|---|
-n <netname> or --name <value> | Corresponds with the share netname parameter. Sets the name by which the share is identified and accessed.Value Type: string Default Value: none. Examples:
|
Optional parameters:
Parameter | Description |
---|---|
--oplock <value> | Corresponds with the share oplock parameter. Controls opportunistic locking (oplock) behavior for the share.Potentially Overrides Global Parameter: oplock Ignored when global parameter oplock is set to disabled Value Type: string Value Format:
Default Value: |
-l <value> or --force-l2oplock <value> | Deprecated. Use --oplock instead. Corresponds with the share force_level2oplock parameter. Controls opportunistic locking (oplock) behavior for the share.warning This parameter is deprecated. Use Value Type: boolean Value Format:
Default Value: |
-e <value> or --encrypt <value> | Corresponds with the share encrypt_data parameter. Controls whether encryption in transit should be enabled for the share.Overrides Global Parameter: encrypt_data Value Type: boolean Value Format:
Default Value: as set in the global configuration. |
--access-based-enumeration <value> | Corresponds with the share access_based_enumeration parameter. Controls whether the share should hide shares during enumeration based on access permission.Value Type: boolean Value Format:
Default Value: |
-P <value> or --permissions <value> | Corresponds with the share permissions parameter. Sets the permissions for the share.Value Type: string Value Format:
important If an Moreover, Fusion File Share Server will continue attempting to resolve the To ignore unresolved Default Value: Examples:
|
--security-descriptor <value> | Corresponds with the share security_descriptor parameter. Sets the security descriptor for the share.Value Type: string Value Format: SDDL string Default Value: none Examples:
|
-r <value> or --remark <value> | Corresponds with the share remark parameter. Sets a human-readable comment on the share.Value Type: string Default Value: none. Examples:
|
-a <value> or --files-allow <value> | Corresponds with the share files_allow parameter. Sets the pattern of allowed files for veto files.Value Type: string Value Format:
Examples:
|
-d <value> or --files-deny <value> | Corresponds with the share files_deny parameter. Sets the pattern of denied files for veto files.Value Type: string Value Format:
Examples:
|
--compression-deny <value> | Corresponds with the share compression_deny parameter. Controls which files should not be compressed with SMB compression enabled.Value Type: string Value Format:
Examples:
|
--hosts-allow <value> | Corresponds with the share hosts_allow parameter. Sets the allowed hosts for host-based access control.Value Type: string Value Format:
Examples:
|
--hosts-deny <value> | Corresponds with the share hosts_deny parameter. Sets the denied hosts for host-based access control.Value Type: string Value Format:
Examples:
|
--vfs-params <value> | Corresponds with the share vfs parameter. Sets the VFS parameters for the share.Value Type: string Value Format:
Default Value: none ( Examples:
|
--hidden <value> | Corresponds with the share hidden parameter. Controls whether the share is a hidden share.Value Type: boolean Value Format:
Default Value: |
--case-insensitive <value> | Corresponds with the share case_insensitive parameter. Controls whether the share should be case-insensitive.Overrides Global Parameter: case_insensitive Value Type: boolean Value Format:
Default Value: as set in the global configuration. |
--create-mask <value> | Corresponds with the share create_mask parameter. Sets the maximum allowed POSIX permissions for a file.Value type: Value format: Default value: Examples:
|
--force-create-mode <value> | Corresponds with the share force_create_mode parameter. Sets the minimum required POSIX permissions for a file.Value type: Value format: Default value: Examples:
|
--directory-mask <value> | Corresponds with the share directory_mask parameter. Sets the maximum allowed POSIX permissions for a directory.Value type: Value format: Default value: Examples:
|
--force-directory-mode <value> | Corresponds with the share force_directory_mode parameter. Sets the minimum required POSIX permissions for a directory.Value type: Value format: Default value: Examples:
|
--enable-oplock <value> | Deprecated. Use --oplock instead. Corresponds with the share enable_oplock parameter. Controls whether the share should enable oplocks.warning This parameter is deprecated. Use Overrides Global Parameter: enable_oplock Value Type: boolean Value Format:
Default Value: |
--named-streams <value> | Corresponds with the share named_streams parameter. Controls whether the share should enable named streams.Value Type: boolean Value Format:
Default Value: |
-h or --help | Display a help message. |
tsmb-cfg share list
This subcommand is used to list the currently active shares in a running Fusion File Share Server instance.
Usage: tsmb-cfg share list [<parameter>,...]
Optional parameters:
Parameter | Description |
---|---|
-l <value> or --info-level <value> | Specifies the output's level of detail, where <value> is one of: • 1 : (Default) List only the netname , and for scoped shares, the server .• 2 : List shares with options set in configuration file. |
-f <value> or --format <value> | Specifies the output's format, where <value> is one of: • raw : (Default) Output in a raw, human-readable format.• json : Output in JSON format. |
-n <value> or --name <value> | Filters the output to only include shares with the specified netname . |
--server <value> | Filters the output to only include shares scoped to the specified server. |
-h or --help | Display a help message. |
tsmb-cfg share help
This subcommand is used to display the help message for the tsmb-cfg share
subcommands.
Usage: tsmb-cfg share help
tsmb-cfg help
This subcommand is used to display the help message for the tsmb-cfg
command.