ADDUSER ( 1 ) USER COMMANDSADDUSER ( 1 )


NAME

adduser - add a user to the system

SYNOPSIS

adduser [ options ] aname

DESCRIPTION

adduser adds an account whose name is given by aname to the system.

A + in the name of the account name or a group name will be replaced by a space character.

OPTIONS

-c command
Added to fullname for the comment field.
-f name
Full name for the owner of the aname account.
-h home
Set the home directory to dir. The default value is /home/aname.
-n
Show the commands that would be executed but don't execute them.
-m
Create the users home directory.
-p passwd
The initial password for the account. If the value is * you will be prompted for the password. The default value is aname123.
-g gid
The default group for the new user. This argument may be repeated to add membership to multiple groups. The default value is Users.
-s shell
The default shell for the new user The default value is /bin/ksh.

EXIT STATUS

0
Success.
>0
An error occurred.

SEE ALSO

passwd(1), chsh(1)

IMPLEMENTATION

version
adduser (AT&T Labs Research) 2002-02-21
author
David Korn <dgk@research.att.com>
copyright
Copyright © 1997-2010 AT&T Intellectual Property
license
http://www.opensource.org/licenses/cpl1.0.txt