.de1 NOP . it 1 an-trap . if \\n[.$] \,\\$*\/ .. .ie t \ .ds B-Font [CB] .ds I-Font [CI] .ds R-Font [CR] .el \ .ds B-Font B .ds I-Font I .ds R-Font R .TH ocpasswd 8 "13 Feb 2017" "0.11.6" "System Management" .\" .\" DO NOT EDIT THIS FILE (in-mem file) .\" .\" It has been AutoGen-ed .\" From the definitions ../src/ocpasswd/args.def.tmp .\" and the template file agman-cmd.tpl .SH NAME \f\*[B-Font]ocpasswd\fP \- OpenConnect server password utility .SH SYNOPSIS \f\*[B-Font]ocpasswd\fP .\" Mixture of short (flag) options and long options [\f\*[B-Font]\-flags\f[]] [\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]] [\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]] [username] .sp \n(Ppu .ne 2 Operands and options may be intermixed. They will be reordered. .sp \n(Ppu .ne 2 .SH "DESCRIPTION" This program is openconnect password (ocpasswd) utility. It allows the generation and handling of a 'plain' password file used by ocserv. .SH "OPTIONS" .TP .NOP \f\*[B-Font]\-c\f[] \f\*[I-Font]file\f[], \f\*[B-Font]\-\-passwd\f[]=\f\*[I-Font]file\f[] Password file. .sp .TP .NOP \f\*[B-Font]\-g\f[] \f\*[I-Font]string\f[], \f\*[B-Font]\-\-groupname\f[]=\f\*[I-Font]string\f[] User's group name. .sp .TP .NOP \f\*[B-Font]\-d\f[], \f\*[B-Font]\-\-delete\f[] Delete user. .sp Removes the specified user from the password file .TP .NOP \f\*[B-Font]\-l\f[], \f\*[B-Font]\-\-lock\f[] Lock user. .sp Prevents the specified user from logging in .TP .NOP \f\*[B-Font]\-u\f[], \f\*[B-Font]\-\-unlock\f[] Unlock user. .sp Re-enables login for the specified user .TP .NOP \f\*[B-Font]\-h\f[], \f\*[B-Font]\-\-help\f[] Display usage information and exit. .TP .NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[] Pass the extended usage information through a pager. .TP .NOP \f\*[B-Font]\-v\f[] [{\f\*[I-Font]v|c|n\f[] \f\*[B-Font]\-\-version\f[] [{\f\*[I-Font]v|c|n\f[]}]}] Output version of program and exit. The default mode is `v', a simple version. The `c' mode will print copyright information and `n' will print the full copyright notice. .PP .SH FILES .br \fBPassword file format\fP .br The password format of ocpasswd is as follows. .sp .br .in +4 .nf username:groupname:encoded\-password .in -4 .fi .sp The crypt(3) encoding is used for the encoded\-password. .sp .SH EXAMPLES .br \fBAdding a user\fP .br .br .in +4 .nf $ ocpasswd \-c ocpasswd my_username .in -4 .fi .sp .br \fBLocking a user\fP .br .br .in +4 .nf $ ocpasswd \-c ocpasswd \-l my_username .in -4 .fi .sp .br \fBUnlocking a user\fP .br .br .in +4 .nf $ ocpasswd \-c ocpasswd \-u my_username .in -4 .fi .SH "EXIT STATUS" One of the following exit values will be returned: .TP .NOP 0 " (EXIT_SUCCESS)" Successful program execution. .TP .NOP 1 " (EXIT_FAILURE)" The operation failed or the command syntax was not valid. .TP .NOP 70 " (EX_SOFTWARE)" libopts had an internal operational error. Please report it to autogen-users@lists.sourceforge.net. Thank you. .PP .SH "SEE ALSO" ocserv(8), occtl(8) .SH "AUTHORS" Nikos Mavrogiannopoulos .SH "COPYRIGHT" Copyright (C) 2013-2016 Nikos Mavrogiannopoulos all rights reserved. This program is released under the terms of the GNU General Public License, version 2. .SH "BUGS" Please send bug reports to: openconnect-devel@lists.infradead.org .SH "NOTES" This manual page was \fIAutoGen\fP-erated from the \fBocpasswd\fP option definitions.