1995-01-09 11:26:31 +00:00
|
|
|
.\"
|
|
|
|
.\" (c) Copyright 1995 Wolfram Schneider. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" 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 Wolfram Schneider
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
|
|
|
.\" /usr/sbin/adduser - add new user(s)
|
|
|
|
.\"
|
|
|
|
.\" Bugs: sure (my english!)
|
|
|
|
.\" Email: Wolfram Schneider <wosch@cs.tu-berlin.de>
|
|
|
|
.\"
|
1995-01-09 11:32:01 +00:00
|
|
|
.\" $Id: adduser.8,v 1.5 1995/01/09 11:26:30 jkh Exp $
|
1995-01-09 11:26:31 +00:00
|
|
|
.\"
|
1994-12-30 12:03:48 +00:00
|
|
|
|
1995-01-09 11:26:31 +00:00
|
|
|
.Dd Jan, 9, 1995
|
|
|
|
.Dt ADDUSER 8
|
|
|
|
.Os FreeBSD 2.1
|
1994-12-30 12:03:48 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm adduser
|
1995-01-09 11:26:31 +00:00
|
|
|
.Nd command for adding new users
|
1994-12-30 12:03:48 +00:00
|
|
|
|
|
|
|
.Sh DESCRIPTION
|
1995-01-09 11:26:31 +00:00
|
|
|
.Nm Adduser
|
1995-01-09 11:32:01 +00:00
|
|
|
is a simple program for adding new users. Adduser checks
|
|
|
|
the passwd, group and shell database files. It create a passwd/group entry,
|
|
|
|
HOME directory, copies dotfiles and sends the new user a welcome message.
|
1995-01-09 11:26:31 +00:00
|
|
|
|
1995-01-09 11:32:01 +00:00
|
|
|
.Sh RESTRICTIONS
|
1995-01-09 11:26:31 +00:00
|
|
|
.Bl -tag -width Ds -compact
|
|
|
|
.It Sy username
|
1995-01-09 11:32:01 +00:00
|
|
|
Login name may be only lowercase characters or digits.
|
1995-01-09 11:26:31 +00:00
|
|
|
.It Sy fullname
|
1995-01-09 11:32:01 +00:00
|
|
|
First and last name.
|
1995-01-09 11:26:31 +00:00
|
|
|
.Ql Pa \:
|
|
|
|
not allowed.
|
|
|
|
.It Sy shell
|
|
|
|
Only valid shells from shell database.
|
|
|
|
.It Sy uid
|
1995-01-09 11:32:01 +00:00
|
|
|
Automatically generated.
|
1995-01-09 11:26:31 +00:00
|
|
|
.It Sy gid
|
1995-01-09 11:32:01 +00:00
|
|
|
Automatically generated. Gid and uid are equal (if possible). Groupname
|
1995-01-09 11:26:31 +00:00
|
|
|
is the same as username.
|
|
|
|
.El
|
|
|
|
|
|
|
|
.Sh CONFIGURATION
|
|
|
|
.Bl -tag -width Ds -compact
|
|
|
|
.It Sy 1.
|
|
|
|
Read intern variables.
|
|
|
|
.It Sy 2.
|
|
|
|
Read config file (/etc/adduser.conf)
|
|
|
|
.It Sy 3.
|
|
|
|
Parse command line options
|
|
|
|
.El
|
|
|
|
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl help
|
|
|
|
Print options and exit.
|
|
|
|
.It Fl silent
|
1995-01-09 11:32:01 +00:00
|
|
|
Few warnings, question, bug reports.
|
1995-01-09 11:26:31 +00:00
|
|
|
.It Fl verbose
|
1995-01-09 11:32:01 +00:00
|
|
|
Many warnings and questions. Recommended for novice users.
|
1995-01-09 11:26:31 +00:00
|
|
|
.It Fl debug
|
|
|
|
Debuging.
|
|
|
|
.It Fl noconfig
|
|
|
|
Do not read config file.
|
|
|
|
.It Fl home Ar partition
|
|
|
|
Default home partition where all users located.
|
|
|
|
.It Fl shell Ar shell
|
|
|
|
Default shell for new users.
|
|
|
|
.It Fl dotdir Ar directory
|
1995-01-09 11:32:01 +00:00
|
|
|
Copy files from .Ar directory into the HOME directory of new users.
|
1995-01-09 11:26:31 +00:00
|
|
|
.Ql Pa dot.foo
|
|
|
|
files renamed to
|
|
|
|
.Ql Pa .foo
|
|
|
|
Don't copy files if
|
|
|
|
.Ar directory
|
|
|
|
equal with
|
|
|
|
.Ar no
|
|
|
|
.It Fl message Ar file
|
|
|
|
Send new users a welcome message.
|
|
|
|
Don't send message if
|
|
|
|
.Ar file
|
|
|
|
equal with
|
|
|
|
.Ar no
|
|
|
|
.It Fl create_conf
|
|
|
|
Create new config and message file and exit.
|
|
|
|
|
|
|
|
.Sh FORMATS
|
|
|
|
.Bl -tag -width Ds -compact
|
|
|
|
.Ql Pa #
|
|
|
|
is a commemt.
|
|
|
|
|
|
|
|
.P
|
|
|
|
.It Sy config file
|
1995-01-03 09:46:14 +00:00
|
|
|
.Nm Adduser
|
1995-01-09 11:26:31 +00:00
|
|
|
read and write this file.
|
|
|
|
See /etc/adduser.conf for more details.
|
|
|
|
.It Sy message file
|
|
|
|
Eval variables in this file. See /etc/adduser.message for more
|
|
|
|
details.
|
|
|
|
.El
|
|
|
|
|
1994-12-30 12:03:48 +00:00
|
|
|
.Sh FILES
|
1995-01-09 11:26:31 +00:00
|
|
|
.Bl -tag -width /etc/master.passwdxx -compact
|
|
|
|
.It Pa /etc/master.passwd
|
|
|
|
user database
|
|
|
|
.It Pa /etc/group
|
|
|
|
group database
|
|
|
|
.It Pa /etc/shells
|
|
|
|
shell database
|
|
|
|
.It Pa /etc/adduser.conf
|
|
|
|
config file for adduser
|
|
|
|
.It Pa /etc/adduser.message
|
|
|
|
message file for adduser
|
|
|
|
.It Pa /usr/share/skel
|
|
|
|
skeletal login directory
|
|
|
|
.It Pa /var/log/adduser
|
|
|
|
logfile for adduser
|
|
|
|
.El
|
|
|
|
|
1994-12-30 12:03:48 +00:00
|
|
|
.Sh SEE ALSO
|
1995-01-09 11:26:31 +00:00
|
|
|
.Xr chpass 1 ,
|
|
|
|
.Xr finger 1 ,
|
|
|
|
.Xr passwd 1 ,
|
|
|
|
.Xr aliases 5 ,
|
|
|
|
.Xr passwd 5 ,
|
|
|
|
.Xr group 5 ,
|
|
|
|
.Xr shells 5 ,
|
|
|
|
.Xr pwd_mkdb 8 ,
|
|
|
|
.Xr vipw 8
|
|
|
|
|
|
|
|
.\" .Sh BUGS
|
1994-12-30 12:03:48 +00:00
|
|
|
|
|
|
|
.Sh HISTORY
|
1995-01-09 11:26:31 +00:00
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
command appeared in FreeBSD 2.1
|
|
|
|
|
|
|
|
.\" .Sh AUTHOR
|
|
|
|
.\" Wolfram Schneider, Berlin
|