ocpasswd(8)

ocpasswd8

Openconnect server password utility

Usage

ocpasswd [--option-name [=value]] [´username´]

Overview

This program is openconnect password (ocpasswd) utility. It allows the generation and handling of a ´plain´ password file used by ocserv.

Options

-c, --passwd=FILE:

Specify the password file to use. Only useful when not using the default location.

-g, --group:

Specify the user´s group name. Note that groups of one character such as ´*´ and ´x´, are ignored.

-d, --delete:

Deletes the specified user from the password file.

-l, --lock:

Prevents the specified user from logging in by locking its password.

-u, --unlock:

Re-enables login for the specified user by unlocking its password.

-h, --help:

Display usage information and exit.

-v, --version:

Output version of program and exit.

Exit status

0

Successful program execution.

1

The operation failed or the command syntax was not valid.

Files

The password format of ocpasswd is as follows.

username:groupname:encoded-password

The crypt(3) encoding is used for the encoded-password.

Examples

Adding a user

$ ocpasswd -c ocpasswd my_username

Locking a user

$ ocpasswd -c ocpasswd -l my_username

Unlocking a user

$ ocpasswd -c ocpasswd -u my_username

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

-! until Debian 9 (Stretch); --delete until Debian 9 (Stretch); --groupname until Debian 9 (Stretch); --help until Debian 9 (Stretch); --lock until Debian 9 (Stretch); --more-help until Debian 9 (Stretch); --unlock until Debian 9 (Stretch); --version until Debian 9 (Stretch); -d until Debian 9 (Stretch); -g until Debian 9 (Stretch); -h until Debian 9 (Stretch); -l until Debian 9 (Stretch); -u until Debian 9 (Stretch); -v until Debian 9 (Stretch).

Authors

Written by Nikos Mavrogiannopoulos. Many people have contributed to it.

Reporting bugs

Issue tracker: https://gitlab.com/openconnect/ocserv/-/issues

From ocserv 1.3.0-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.