diff options
author | Dima Dorfman <dd@FreeBSD.org> | 2001-03-14 03:22:28 +0000 |
---|---|---|
committer | Dima Dorfman <dd@FreeBSD.org> | 2001-03-14 03:22:28 +0000 |
commit | 728acab3c15c118bb1fbfd497c3bb4401c47fc70 (patch) | |
tree | 3f5e49370902118fd7cdec740653d44ada27edcc /pw | |
parent | a24109c93cf0620d2a5d80b4080edc56be4038ce (diff) | |
download | pw-darwin-728acab3c15c118bb1fbfd497c3bb4401c47fc70.tar.gz pw-darwin-728acab3c15c118bb1fbfd497c3bb4401c47fc70.tar.zst pw-darwin-728acab3c15c118bb1fbfd497c3bb4401c47fc70.zip |
Document the lock and unlock commands.
PR: 25187
Approved by: nik
Diffstat (limited to 'pw')
-rw-r--r-- | pw/pw.8 | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -169,6 +169,18 @@ .Ar groupnext .Op Fl C Ar config .Op Fl q +.Nm +.Op Fl V Ar etcdir +.Ar lock +.Op name|uid +.Op Fl C Ar config +.Op Fl q +.Nm +.Op Fl V Ar etcdir +.Ar unlock +.Op name|uid +.Op Fl C Ar config +.Op Fl q .Sh DESCRIPTION .Nm Pw is a command-line based editor for the system @@ -758,6 +770,26 @@ to specify the group id. The command .Ar groupnext returns the next available group id on standard output. +.Sh USER LOCKING +.Nm Pw +supports a simple password locking mechanism for users; it works by +prepending the string +.Ql *LOCKED* +to the beginning of the password field in +.Pa master.passwd +to prevent successful authentication. +.Pp +The +.Ar lock +and +.Ar unlock +commands take a user name or uid of the account to lock or unlock, +respectively. The +.Ql Fl V , +.Ql Fl C , +and +.Ql Fl q +options as described above are accepted by these commands. .Sh DIAGNOSTICS .Nm Pw returns EXIT_SUCCESS on successful operation, otherwise |