OCPASSWD(8)
π OCPASSWD β the ocpasswd girlies' guide π
okay so bestie, welcome to ocpasswd, aka the OpenConnect server password utility from the System Manager's Manual (section 8, so you know it's admin business π). Sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
ocpasswd β OpenConnect server password utility
πΈ SYNOPSIS πΈ
ocpasswd [ -flag [value] | --option-name[[=| ]value] ]... username
fr fr, that bracket situation is just saying: you can stack flags, long options can take a value glued on with=or separated by a space, and you always end with ausername. That's the vibe. π
π¦ DESCRIPTION π¦
So this program is the openconnect password (ocpasswd) utility. What does it do? It lets you generate and handle a 'plain' password file β the one ocserv uses. That's literally the whole job and it eats every time. πβ¨
π OPTIONS π
-c,--passwd=FILEβ pick which password file you're working with. Only useful when you're not using the default location, bestie. The default is/etc/ocserv/ocpasswd. ποΈ-g,--groupβ set the user's group name. Heads up though: groups that are just one single character, like'*'and'x', get ignored. Not us. They're ignored. π-d,--deleteβ deletes the specified user from the password file. gone. poof. π-l,--lockβ prevents the specified user from logging in by locking their password. π«π-u,--unlockβ re-enables login for the specified user by unlocking their password. welcome back queen ππ-h,--helpβ display usage information and exit. your friendly lil helper π«Ά-v,--versionβ output version of program and exit. π
π₯ EXIT STATUS π₯
0β successful program execution. slay. β¨1β the operation failed or the command syntax was not valid. it's giving error energy π
π FILES π
The password format of ocpasswd is as follows:
username:groupname:encoded-password
And the crypt(3) encoding is used for the encoded-password. no cap, that's just how it be. π
π 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
π AUTHORS π
Written by Nikos Mavrogiannopoulos. Many people have contributed to it. iconic collaborative behavior, honestly. π
π REPORTING BUGS π
Issue tracker: https://gitlab.com/openconnect/ocserv/-/issues
found a bug? not me ignoring it β go tell the tracker bestie π«Ά
β COPYRIGHT β
Copyright (C) 2013-2024 Nikos Mavrogiannopoulos and others, all rights reserved. This program is released under the terms of the GNU General Public License, version 2. πβ¨
π SEE ALSO π
and that's the whole page, babe π this was the OCPASSWD(8) page from the System Manager's Manual, dated June 2026 β go forth and manage those passwords responsibly, main character π¦πΈπ
π¦ where this page comes from
- epel 10: ocserv 1.5.0-2.el10_3 Β· GPL-2.0-or-later AND BSD-3-Clause AND MIT AND CC0-1.0
- fedora 44: ocserv 1.5.0-2.fc44 Β· GPL-2.0-or-later AND BSD-3-Clause AND MIT AND CC0-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms