1OCPASSWD(8)                                                        OCPASSWD(8)
2
3
4

NAME

6       ocpasswd - OpenConnect server password utility
7

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

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

FILES

42       The password format of ocpasswd is as follows.
43
44
45
46           username:groupname:encoded-password
47
48
49
50       The crypt(3) encoding is used for the encoded-password.
51

EXAMPLES

53   Adding a user
54       $ ocpasswd -c ocpasswd my_username
55
56   Locking a user
57       $ ocpasswd -c ocpasswd -l my_username
58
59   Unlocking a user
60       $ ocpasswd -c ocpasswd -u my_username
61

Exit status

63       0      Successful program execution.
64
65       1      The operation failed or the command syntax was not valid.
66

SEE ALSO

68       ocserv(8), occtl(8)
69
71       Copyright (C) 2013-2017 Nikos Mavrogiannopoulos and others, all  rights
72       reserved.  This  program is released under the terms of the GNU General
73       Public License, version 2.
74

AUTHORS

76       Written by Nikos Mavrogiannopoulos. Many people have contributed to it.
77
78
79
80                                September 2020                     OCPASSWD(8)
Impressum