ADDUSER(8) MachTen Programmer’s Manual ADDUSER(8)

NAME
adduser - add new user to system

SYNOPSIS
adduser user [ -u uid ] [ -g gid ] [ -p passwd ]
[ -n user ] [ -d home ] [ -s login ]

DESCRIPTION
adduser does all the bookeeping to create a new user login
on the system. A new password file /etc/passwd is cre-
ated. The old password file is saved in /etc/passwd.OLD.

OPTIONS
-u user id of new user. Specifies a unique number for
the user on this system. If it is not specified it
will be set to the uid of the last entry in the
password file plus one.

-g group id of the new user. Specifies the group that
the user belongs to. May be a number or a group
name contained in the /etc/group file. If it is
not specified it will be set to the default group
"staff". Note, if you do not use the default, make
sure the group is in the /etc/group file.

-p is the clear text form of the user password. If
not specified, the user will be used.

-n specifies user information. Typically used to
specify real world user name, mail stop or phone.
If not specified, the user will be used. If this
text contains spaces or other special Unix charac-
ters, it should be enclosed in quotes.

-d specifies the users home directory. If not speci-
fied /home/user will be used. If the directory
already exists, it must be owned by the user and
group and have read, write and execute permissions.

-s specifies the program to run as the login shell.
The name is checked to make sure it is an exe-
cutable program with access for the new user. If
not specified, /bin/sh will be used.

SEE ALSO
login(1), passwd(5), group(5)

MachTen Version 1.0 23 May 1993 1