2003-02-14 19:11:34 +03:00
|
|
|
.\" $NetBSD: user.8,v 1.15 2003/02/14 16:11:37 grant Exp $ */
|
1999-12-07 00:31:42 +03:00
|
|
|
.\"
|
|
|
|
.\"
|
1999-12-07 13:14:01 +03:00
|
|
|
.\" Copyright (c) 1999 Alistair G. Crooks. All rights reserved.
|
1999-12-07 00:31:42 +03:00
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by Alistair G. Crooks.
|
|
|
|
.\" 4. The name of the author may not be used to endorse or promote
|
|
|
|
.\" products derived from this software without specific prior written
|
|
|
|
.\" permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
|
|
|
|
.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
|
|
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
|
|
|
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
|
|
|
.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
|
.\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
|
|
.\" NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
|
|
.\" SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\"
|
2001-09-06 01:37:32 +04:00
|
|
|
.Dd September 5, 2001
|
1999-12-07 00:31:42 +03:00
|
|
|
.Dt USER 8
|
2001-06-05 15:31:21 +04:00
|
|
|
.Os
|
1999-12-07 00:31:42 +03:00
|
|
|
.Sh NAME
|
|
|
|
.Nm user
|
|
|
|
.Nd manage user login information on the system
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm ""
|
2000-10-03 23:32:23 +04:00
|
|
|
.Cm add
|
|
|
|
.Fl D
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl b Ar base-dir
|
|
|
|
.Op Fl e Ar expiry-time
|
2002-06-01 10:28:06 +04:00
|
|
|
.Op Fl f Ar inactive-time
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl g Ar gid/name/=uid
|
2001-09-06 01:37:32 +04:00
|
|
|
.Op Fl L Ar login-class
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl r Ar low..high
|
|
|
|
.Nm ""
|
2000-10-03 23:32:23 +04:00
|
|
|
.Cm add
|
|
|
|
.Op Fl mov
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl G Ar secondary-group
|
|
|
|
.Op Fl b Ar base-dir
|
|
|
|
.Op Fl c Ar comment
|
|
|
|
.Op Fl d Ar home-dir
|
|
|
|
.Op Fl e Ar expiry-time
|
2002-06-01 10:28:06 +04:00
|
|
|
.Op Fl f Ar inactive-time
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl g Ar gid/name/=uid
|
|
|
|
.Op Fl k Ar skel-dir
|
2001-09-06 01:37:32 +04:00
|
|
|
.Op Fl L Ar login-class
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl p Ar password
|
|
|
|
.Op Fl r Ar low..high
|
|
|
|
.Op Fl s Ar shell
|
|
|
|
.Op Fl u Ar uid
|
2000-02-28 08:10:56 +03:00
|
|
|
.Ar user
|
1999-12-07 00:31:42 +03:00
|
|
|
.Nm ""
|
2000-10-03 23:32:23 +04:00
|
|
|
.Cm del
|
|
|
|
.Fl D
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl p Ar preserve-value
|
|
|
|
.Nm ""
|
2000-10-03 23:32:23 +04:00
|
|
|
.Cm del
|
|
|
|
.Op Fl prv
|
2000-02-28 08:10:56 +03:00
|
|
|
.Ar user
|
1999-12-07 00:31:42 +03:00
|
|
|
.Nm ""
|
2000-10-03 23:32:23 +04:00
|
|
|
.Cm info
|
|
|
|
.Op Fl ev
|
2000-02-28 08:10:56 +03:00
|
|
|
.Ar user
|
1999-12-24 12:08:48 +03:00
|
|
|
.Nm ""
|
2000-10-03 23:32:23 +04:00
|
|
|
.Cm mod
|
|
|
|
.Op Fl mov
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl G Ar secondary-group
|
|
|
|
.Op Fl c Ar comment
|
|
|
|
.Op Fl d Ar home-dir
|
|
|
|
.Op Fl e Ar expiry-time
|
2002-06-01 10:28:06 +04:00
|
|
|
.Op Fl f Ar inactive-time
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl g Ar gid/name/=uid
|
2001-09-06 01:37:32 +04:00
|
|
|
.Op Fl L Ar login-class
|
1999-12-07 00:31:42 +03:00
|
|
|
.Op Fl l Ar new-login
|
|
|
|
.Op Fl p Ar password
|
|
|
|
.Op Fl s Ar shell
|
|
|
|
.Op Fl u Ar uid
|
2000-02-28 08:10:56 +03:00
|
|
|
.Ar user
|
1999-12-07 00:31:42 +03:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility acts as a frontend to the
|
|
|
|
.Xr useradd 8 ,
|
|
|
|
.Xr usermod 8 ,
|
1999-12-24 12:08:48 +03:00
|
|
|
.Xr userinfo 8 ,
|
1999-12-07 00:31:42 +03:00
|
|
|
and
|
|
|
|
.Xr userdel 8
|
|
|
|
commands.
|
|
|
|
.Pp
|
|
|
|
For a full explanation of the options, please see the relevant manual page.
|
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Nm
|
2002-02-08 04:36:18 +03:00
|
|
|
utility exits 0 on success, and \*[Gt]0 if an error occurs.
|
2000-02-28 08:10:56 +03:00
|
|
|
.Sh FILES
|
2001-04-27 13:13:35 +04:00
|
|
|
.Bl -tag -width /usr/share/examples/usermgmt -compact
|
2000-02-28 08:10:56 +03:00
|
|
|
.It Pa /etc/skel/.[A-z]*
|
2000-10-01 12:54:07 +04:00
|
|
|
Skeleton files for new user
|
2000-02-28 08:10:56 +03:00
|
|
|
.It Pa /etc/usermgmt.conf
|
|
|
|
Configuration file for
|
2002-06-24 22:22:37 +04:00
|
|
|
.Nm "" ,
|
2000-02-28 08:10:56 +03:00
|
|
|
.Xr group 8
|
|
|
|
and those backend commands
|
|
|
|
.It Pa /usr/share/examples/usermgmt
|
2001-04-27 13:13:35 +04:00
|
|
|
A directory containing examples for
|
2002-06-24 22:22:37 +04:00
|
|
|
.Nm
|
2000-02-28 08:10:56 +03:00
|
|
|
and
|
|
|
|
.Xr group 8
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr chpass 1 ,
|
|
|
|
.Xr group 5 ,
|
|
|
|
.Xr passwd 5 ,
|
2002-06-01 10:28:06 +04:00
|
|
|
.Xr usermgmt.conf 5 ,
|
2000-02-28 08:10:56 +03:00
|
|
|
.Xr useradd 8 ,
|
|
|
|
.Xr userdel 8 ,
|
|
|
|
.Xr userinfo 8 ,
|
|
|
|
.Xr usermod 8
|
1999-12-07 00:31:42 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility first appeared in
|
|
|
|
.Nx 1.5 .
|
|
|
|
It is based on the
|
|
|
|
.Ar addnerd
|
|
|
|
package by the same author.
|
2002-02-02 05:05:29 +03:00
|
|
|
.Sh AUTHORS
|
1999-12-07 00:31:42 +03:00
|
|
|
The
|
|
|
|
.Nm
|
2003-02-14 19:11:34 +03:00
|
|
|
utility was written by
|
|
|
|
.An Alistair G. Crooks
|
|
|
|
.An agc@NetBSD.org .
|