ksmbd.adduser(8)

ksmbd.adduser8

Configure users for ksmbdpwd.db of ksmbd.mountd

Usage

ksmbd.adduser [-v] [-P PWDDB] [-C CONF] [{-a | -u | -d}] [-p PWD] USER

Overview

ksmbd.adduser configures users for ksmbdpwd.db(5) user database of ksmbd.mountd(8) user mode daemon. ksmbd.adduser can parse ksmbd.conf(5) configuration file so as to guard against deletion of users that are depended on. ksmbd.adduser notifies ksmbd.mountd of changes if it had made any.

Options

If neither -a, -u, nor -d is given, either add or update USER. USER must be UTF-8 and [1, 48) bytes. USER cannot contain colon (:).

-a, --add

Add USER to user database.

-u, --update

Update USER in user database.

-d, --delete

Delete USER from user database.

-p, --password=PWD

Use PWD as user password instead of prompting. PWD must be UTF-8 and [0, 129) bytes.

-P, --pwddb=PWDDB

Use PWDDB as user database instead of /etc/ksmbd/ksmbdpwd.db.

-C, --config=CONF

Use CONF as configuration file instead of /etc/ksmbd/ksmbd.conf.

-v, --verbose

Be verbose.

-V, --version

Output version information and exit.

-h, --help

Display this help and exit.

Exit status

The exit status is 0 on success and 1 on failure. Failure to notify ksmbd.mountd of changes has no effect on exit status.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

--add since Debian 13 (Trixie); --config since Debian 13 (Trixie); --delete since Debian 13 (Trixie); --help since Debian 13 (Trixie); --password since Debian 13 (Trixie); --pwddb since Debian 13 (Trixie); --update since Debian 13 (Trixie); --verbose since Debian 13 (Trixie); --version since Debian 13 (Trixie); -C since Debian 13 (Trixie); -P since Debian 13 (Trixie); -V since Debian 13 (Trixie); -a since Debian 13 (Trixie); -d since Debian 13 (Trixie); -h since Debian 13 (Trixie); -p since Debian 13 (Trixie); -u since Debian 13 (Trixie); -v since Debian 13 (Trixie).

Reporting bugs

For bug reports, use the issue tracker at https://github.com/cifsd-team/ksmbd-tools/issues.

From ksmbd-tools 3.5.3-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.