SASLPASSWD2(8) System Manager's Manual SASLPASSWD2(8)

# [NAME](#NAME)

saslpasswd2 - set a user's sasl password

# [SYNOPSIS](#SYNOPSIS)

**saslpasswd2** \[**-p**] \[**-d**] \[**-c**] \[**-n**] \[**-f file**] \[**-u domain**] \[**-a appname**] \[**-v**] **userid**

# [DESCRIPTION](#DESCRIPTION)

*saslpasswd2* is used by a server administrator to set a user's sasl password for server programs and SASL mechanisms which use the standard libsasl database of user secrets.

# [OPTIONS](#OPTIONS)

[**-p**](#p)

Pipe mode - saslpasswd2 will neither prompt for the password nor verify that it was entered correctly. This is the default when standard input is not a terminal.

[**-c**](#c)

Creates an entry for the user if the user doesn't already exist. This is mutually exclusive with the **-d** (delete user) flag.

[**-d**](#d)

Deletes the entry for the user. This is mutually exclusive with the **-c** (create user) flag.

[**-n**](#n)

Don't set the plaintext *userPassword* property for the user. Only mechanism-specific secrets will be set (e.g. OTP, SCRAM, SRP)

[**-u domain**](#u)

use **domain** for user domain (realm).

[**-f file**](#f)

use **file** for sasldb

[**-a appname**](#a)

use **appname** as application name.

[**-v**](#v)

Print libsasl2 version number and exit.

# [SEE ALSO](#SEE_ALSO)

[sasldblistusers2(8)](/man/os/cyrus-sasl-heimdal/sasldblistusers2.8)

[rfc4422 - Simple Authentication and Security Layer (SASL)](#rfc4422)

March 7, 2005 CMU SASL

---

Document: saslpasswd2(8) from cyrus-sasl-heimdal 2.1.28-r58 (Chainguard OS)
Source: https://github.com/cyrusimap/cyrus-sasl.git
