1OCPASSWD(8) System Manager's Manual OCPASSWD(8)
2
3
4
6 ocpasswd - OpenConnect server password utility
7
9 ocpasswd [--option-name[=value]] [´username´]
10
12 This program is openconnect password (ocpasswd) utility. It allows the
13 generation and handling of a ´plain´ password file used by ocserv.
14
16 -c, --passwd=FILE:
17 Specify the password file to use. Only useful when not using the
18 default location.
19
20 -g, --group:
21 Specify the user´s group name. Note that groups of one character
22 such as ´*´ and ´x´, are ignored.
23
24 -d, --delete:
25 Deletes the specified user from the password file.
26
27 -l, --lock:
28 Prevents the specified user from logging in by locking its pass‐
29 word.
30
31 -u, --unlock:
32 Re-enables login for the specified user by unlocking its pass‐
33 word.
34
35 -h, --help:
36 Display usage information and exit.
37
38 -v, --version:
39 Output version of program and exit.
40
42 The password format of ocpasswd is as follows.
43
44
45 username:groupname:encoded-password
46
47
48
49 The crypt(3) encoding is used for the encoded-password.
50
52 Adding a user
53 $ ocpasswd -c ocpasswd my_username
54
55 Locking a user
56 $ ocpasswd -c ocpasswd -l my_username
57
58 Unlocking a user
59 $ ocpasswd -c ocpasswd -u my_username
60
62 0 Successful program execution.
63
64 1 The operation failed or the command syntax was not valid.
65
67 ocserv(8), occtl(8)
68
70 Copyright (C) 2013-2017 Nikos Mavrogiannopoulos and others, all rights
71 reserved. This program is released under the terms of the GNU General
72 Public License, version 2.
73
75 Written by Nikos Mavrogiannopoulos. Many people have contributed to it.
76
77
78
79 June 2023 OCPASSWD(8)