Patches from Liam Foy:
- Add new -C option to 'usermod'. This allows a quick way to temporary lock a users account. This is similar to how FreeBSD do it using 'adduser'. This function can be very handy to administrators! - Import a function to check if the inputted class actually exists. It contains my modifications to test whether /etc/login.conf exists in the first place. -OpenBSD
This commit is contained in:
parent
24e9d708ff
commit
9f01a2d031
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: usermod.8,v 1.20 2005/02/05 15:28:46 wiz Exp $ */
|
||||
.\" $NetBSD: usermod.8,v 1.21 2005/07/27 19:09:21 christos Exp $ */
|
||||
.\"
|
||||
.\"
|
||||
.\" Copyright (c) 1999 Alistair G. Crooks. All rights reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.\"
|
||||
.Dd September 5, 2001
|
||||
.Dd July 27, 2005
|
||||
.Dt USERMOD 8
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -40,6 +40,7 @@
|
||||
.Sh SYNOPSIS
|
||||
.Nm
|
||||
.Op Fl Smov
|
||||
.Op Fl C Ar yes/no
|
||||
.Op Fl G Ar secondary-group
|
||||
.Op Fl c Ar comment
|
||||
.Op Fl d Ar home-dir
|
||||
@ -72,6 +73,11 @@ the following command line options are processed:
|
||||
is the secondary group to which the user will be added in the
|
||||
.Pa /etc/group
|
||||
file.
|
||||
.It Fl C Ar yes/no
|
||||
this enables user accounts to be temporary locked/closed. The
|
||||
.Ar yes/no
|
||||
operand can be given as 'yes' to lock the account or 'no' to
|
||||
unlock the account.
|
||||
.It Fl S
|
||||
allows samba user names with a trailing dollar sign to be
|
||||
modified.
|
||||
|
Loading…
Reference in New Issue
Block a user