View | Details | Raw Unified | Return to bug 25187
Collapse All | Expand All

(-)pw.8 (+32 lines)
Lines 169-174 Link Here
169
.Ar groupnext
169
.Ar groupnext
170
.Op Fl C Ar config
170
.Op Fl C Ar config
171
.Op Fl q
171
.Op Fl q
172
.Nm
173
.Op Fl V Ar etcdir
174
.Ar lock
175
.Op name|uid
176
.Op Fl C Ar config
177
.Op Fl q
178
.Nm
179
.Op Fl V Ar etcdir
180
.Ar unlock
181
.Op name|uid
182
.Op Fl C Ar config
183
.Op Fl q
172
.Sh DESCRIPTION
184
.Sh DESCRIPTION
173
.Nm Pw
185
.Nm Pw
174
is a command-line based editor for the system
186
is a command-line based editor for the system
Lines 758-763 Link Here
758
The command
770
The command
759
.Ar groupnext
771
.Ar groupnext
760
returns the next available group id on standard output.
772
returns the next available group id on standard output.
773
.Sh USER LOCKING
774
.Nm Pw
775
supports a simple password locking mechanism for users; it works by
776
prepending the string
777
.Ql *LOCKED*
778
to the beginning of the password field in
779
.Pa master.passwd
780
to prevent successful authentication.
781
.Pp
782
The
783
.Ar lock
784
and
785
.Ar unlock
786
commands take a user name or uid of the account to lock or unlock,
787
respectively.  The
788
.Ql Fl V ,
789
.Ql Fl C ,
790
and
791
.Ql Fl q
792
options as described above are accepted by these commands.
761
.Sh DIAGNOSTICS
793
.Sh DIAGNOSTICS
762
.Nm Pw
794
.Nm Pw
763
returns EXIT_SUCCESS on successful operation, otherwise 
795
returns EXIT_SUCCESS on successful operation, otherwise 
(-)pw.c (+10 lines)
Lines 370-375 Link Here
370
				"usage: pw usernext [switches]\n"
370
				"usage: pw usernext [switches]\n"
371
				"\t-V etcdir      alternate /etc location\n"
371
				"\t-V etcdir      alternate /etc location\n"
372
				"\t-C config      configuration file\n"
372
				"\t-C config      configuration file\n"
373
				"\t-q             quiet operation\n",
374
				"usage pw: lock [switches]\n"
375
				"\t-V etcdir      alternate /etc locations\n"
376
				"\t-C config      configuration file\n"
377
				"\t-q             quiet operation\n",
378
				"usage pw: unlock [switches]\n"
379
				"\t-V etcdir      alternate /etc locations\n"
380
				"\t-C config      configuration file\n"
381
				"\t-q             quiet operation\n"
373
			},
382
			},
374
			{
383
			{
375
				"usage: pw groupadd [group|gid] [switches]\n"
384
				"usage: pw groupadd [group|gid] [switches]\n"
Lines 409-414 Link Here
409
				"usage: pw groupnext [switches]\n"
418
				"usage: pw groupnext [switches]\n"
410
				"\t-V etcdir      alternate /etc location\n"
419
				"\t-V etcdir      alternate /etc location\n"
411
				"\t-C config      configuration file\n"
420
				"\t-C config      configuration file\n"
421
				"\t-q             quiet operation\n"
412
			}
422
			}
413
		};
423
		};

Return to bug 25187