saslpasswd2(8)

saslpasswd28

Set a user's sasl password

Usage

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

Overview

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

-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

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

-d

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

-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

use domain for user domain (realm).

-f file

use file for sasldb

-a appname

use appname as application name.

-v

Print libsasl2 version number and exit.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 3 times.

  1. 3.1
  2. 4.0–6.0
  3. 7–11
  4. 12–Arch

-v since Debian 4.0 (Etch).

From libsasl 2.1.28-5 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.