Skip to main content

tsmb-passwd

This utility manages user accounts and groups for the file-backed user database.

Usage: tsmb-passwd [<option>,...] <command> [<parameter>,...]

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf, where the path to the file-backed user database users and groups files are specified in the userdb_file and group_member_db parameters respectively.
-h, --helpShow help information and exit.

Available Commands:

CommandDescription
--addAdd a new user account
--update(Default) Update an existing user account.
--removeRemove a user existing user account.
--add-memberAdd a member to a group.
--remove-memberRemove a member from a group.
--listList user accounts.
--list-membersList members of a group.
--lookupLookup account by name or SID.
--translateConvert between SID/UID/GID.
--versionDisplay version information.

tsmb-passwd --add

This subcommand adds a user to the file-backed user database.

Usage: tsmb-passwd --add <username> [<option>,...]

Required Arguments:

ArgumentDescription
<username>The name of the user account to be added. Can be omitted with --guest, then the username will be guest.

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf, where the path to the file-backed user database users and groups files are specified in the userdb_file and group_member_db parameters respectively.
-h
or
--help
Display a help message.
-s
or
--stdin
Read password from STDIN (non-interactive).
-H
or
--hash
Specifies that the supplied password string is an NT hash, not plain text.
-e
or
--enable
(Default) Enable account.
-d
or
--disable
Disable account.
-G
or
--guest
Specifies that the user account is a guest account. When this option is specified, <username> is optional
--groupCreate a new group, instead of a user account.
-z <name>
or
--posix <name>
Map an SMB user to a POSIX user.

tsmb-passwd --update

This subcommand updates a user in the file-backed user database.

Usage: tsmb-passwd --update <username> [<option>,...]

Required Arguments:

ArgumentDescription
<username>The name of the user account to be updated. Can be omitted with --guest, then the username will be guest.

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf, where the path to the file-backed user database users and groups files are specified in the userdb_file and group_member_db parameters respectively.
-h
or
--help
Display a help message.
--createCreate the account if it does not exist.
-s
or
--stdin
Read password from STDIN (non-interactive).
-H
or
--hash
Specifies that the supplied password string is an NT hash, not plain text.
-e
or
--enable
Enable account.
-d
or
--disable
Disable account.
-G
or
--guest
Specifies that the user account is a guest account. When this option is specified, and the username guest is used.
-z <name>
or
--posix <name>
Map an SMB user to a POSIX user.

tsmb-passwd --remove

This subcommand removes a user in the file-backed user database.

Usage: tsmb-passwd --remove <username> [<option>,...]

Required Arguments:

ArgumentDescription
<username>The name of the user account to be removed.

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf, where the path to the file-backed user database users and groups files are specified in the userdb_file and group_member_db parameters respectively.
-h
or
--help
Display a help message.

tsmb-passwd --add-member

This subcommand adds a member to a group.

Usage: tsmb-passwd --add-member <username> <group> [<option>,...]

Required Arguments:

ArgumentDescription
<username>The name of the user to be added to the group. User must exist before being added to a group.
<group>The name of the group to which the user will be added. Group must exist before members can be added to it.

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf, where the path to the file-backed user database users and groups files are specified in the userdb_file and group_member_db parameters respectively.
-h
or
--help
Display a help message.

tsmb-passwd --remove-member

This subcommand removes a member from a group.

Usage: tsmb-passwd --remove-member <username> <group> [<option>,...]

Required Arguments:

ArgumentDescription
<username>The name of the user to be removed from the group.
<group>The name of the group from which the user will be removed.

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf, where the path to the file-backed user database users and groups files are specified in the userdb_file and group_member_db parameters respectively.
-h
or
--help
Display a help message.

tsmb-passwd --list

This subcommand lists users or groups in the file-backed user database in a JSON format.

Usage: tsmb-passwd --list [<option>,...]

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf, where the path to the file-backed user database users and groups files are specified in the userdb_file and group_member_db parameters respectively.
--allList all users and groups in the file-backed user database.
--domainsList available domains.
--groupList groups, instead of users
-h
or
--help
Display a help message.

tsmb-passwd --list-members

This subcommand lists the members of a specified group in the file-backed user database.

Usage: tsmb-passwd --list-members <group> [<option>,...]

Required Arguments:

ArgumentDescription
<group>The name of the group whose members will be listed.

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf, where the path to the file-backed user database users and groups files are specified in the userdb_file and group_member_db parameters respectively.
-h
or
--help
Display a help message.

tsmb-passwd --lookup

This subcommand looks up an account in the file-backed user database.

Usage: tsmb-passwd --lookup <query> [<option>,...]

Required Arguments:

ArgumentDescription
<query>The account name or SID to look up.

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf, where the path to the file-backed user database users and groups files are specified in the userdb_file and group_member_db parameters respectively.
--nameForce processing <query> as an account name.
--show-membershipShow group membership of the account.
--sidForce processing <query> as a SID.
-h
or
--help
Display a help message.

tsmb-passwd --translate

This subcommand translates between different account identifiers.

Usage: tsmb-passwd --translate <identifier> [<option>,...]

Required Arguments:

ArgumentDescription
<identifier>The identifier to translate. This can be a SID, POSIX UID/GID, or account name.

Available Options:

OptionDescription
-c <path>
or
--config <path>
Specifies the path to the Fusion File Share Server configuration file. Default is /etc/tsmb.conf.
--gidForce processing <identifier> as a POSIX GID.
--groupLimit translation to group accounts.
--sidForce processing <identifier> as a SID.
--uidForce processing <identifier> as a POSIX UID.
-h
or
--help
Display a help message.

tsmb-passwd --version

This subcommand displays the version information of the utility.

Usage: tsmb-passwd --version