2007-10-07 17:16:16 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-10-11 17:14:43 +05:30
|
|
|
<!--
|
|
|
|
Copyright (c) 1991 - 1994, Julianne Frances Haugh
|
2009-03-14 04:00:38 +05:30
|
|
|
Copyright (c) 2007 - 2009, Nicolas François
|
2008-10-11 17:14:43 +05:30
|
|
|
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. The name of the copyright holders or contributors may not be used to
|
|
|
|
endorse or promote products derived from this software without
|
|
|
|
specific prior written permission.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
``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 COPYRIGHT
|
|
|
|
HOLDERS OR CONTRIBUTORS 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.
|
|
|
|
-->
|
* man/login.defs.d/CONSOLE_GROUPS.xml,
man/login.defs.d/CONSOLE.xml, man/login.defs.d/DEFAULT_HOME.xml,
man/login.defs.d/ENV_HZ.xml, man/login.defs.d/ENVIRON_FILE.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml,
man/login.defs.d/ENV_TZ.xml, man/login.defs.d/ERASECHAR.xml,
man/login.defs.d/FAIL_DELAY.xml,
man/login.defs.d/FAILLOG_ENAB.xml,
man/login.defs.d/FAKE_SHELL.xml, man/login.defs.d/FTMP_FILE.xml,
man/login.defs.d/HUSHLOGIN_FILE.xml,
man/login.defs.d/ISSUE_FILE.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/LASTLOG_ENAB.xml, man/login.defs.d/LOGIN_RETRIES.xml,
man/login.defs.d/LOGIN_TIMEOUT.xml, man/login.defs.d/LOG_OK_LOGINS.xml,
man/login.defs.d/LOG_UNKFAIL_ENAB.xml,
man/login.defs.d/MAIL_CHECK_ENAB.xml, man/login.defs.d/MOTD_FILE.xml,
man/login.defs.d/NOLOGINS_FILE.xml,
man/login.defs.d/OBSCURE_CHECKS_ENAB.xml,
man/login.defs.d/PASS_ALWAYS_WARN.xml,
man/login.defs.d/PASS_CHANGE_TRIES.xml,
man/login.defs.d/PASS_MAX_LEN.xml,
man/login.defs.d/PORTTIME_CHECKS_ENAB.xml,
man/login.defs.d/QUOTAS_ENAB.xml, man/login.defs.d/SULOG_FILE.xml,
man/login.defs.d/SU_NAME.xml, man/login.defs.d/SU_WHEEL_ONLY.xml,
man/login.defs.d/SYSLOG_SG_ENAB.xml,
man/login.defs.d/SYSLOG_SU_ENAB.xml,
man/login.defs.d/TTYGROUP.xml, man/login.defs.d/TTYTYPE_FILE.xml,
man/login.defs.d/ULIMIT.xml, man/login.defs.d/USERGROUPS_ENAB.xml:
New documentation of login.defs variables.
* man/login.defs.d/MAIL_DIR.xml: Updated. It now contains the
MAIL_FILE documentation.
* man/login.defs.d/LOGIN_STRING.xml: Updated. Mentions %s.
* man/pwconv.8.xml, man/groupmems.8.xml, man/groupdel.8.xml,
man/useradd.8.xml, man/pwck.8.xml, man/groupadd.8.xml,
man/sulogin.8.xml, man/newgrp.1.xml, man/usermod.8.xml,
man/su.1.xml, man/vipw.8.xml, man/passwd.1.xml,
man/groupmod.8.xml, man/login.1.xml, man/userdel.8.xml,
man/grpck.8.xml: Added CONFIGURATION section.
* man/generate_mans.mak: The generations of manpages depends on
the variables from the Makefiles. Add the dependency on Makefile.
* man/login.defs.5.xml: New login.defs variable documented.
* man/Makefile.am: Added XML variable documentation to the
distributed files.
2007-12-09 04:54:40 +05:30
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2009-01-19 15:30:53 +05:30
|
|
|
<!ENTITY CREATE_HOME SYSTEM "login.defs.d/CREATE_HOME.xml">
|
* man/login.defs.d/CONSOLE_GROUPS.xml,
man/login.defs.d/CONSOLE.xml, man/login.defs.d/DEFAULT_HOME.xml,
man/login.defs.d/ENV_HZ.xml, man/login.defs.d/ENVIRON_FILE.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml,
man/login.defs.d/ENV_TZ.xml, man/login.defs.d/ERASECHAR.xml,
man/login.defs.d/FAIL_DELAY.xml,
man/login.defs.d/FAILLOG_ENAB.xml,
man/login.defs.d/FAKE_SHELL.xml, man/login.defs.d/FTMP_FILE.xml,
man/login.defs.d/HUSHLOGIN_FILE.xml,
man/login.defs.d/ISSUE_FILE.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/LASTLOG_ENAB.xml, man/login.defs.d/LOGIN_RETRIES.xml,
man/login.defs.d/LOGIN_TIMEOUT.xml, man/login.defs.d/LOG_OK_LOGINS.xml,
man/login.defs.d/LOG_UNKFAIL_ENAB.xml,
man/login.defs.d/MAIL_CHECK_ENAB.xml, man/login.defs.d/MOTD_FILE.xml,
man/login.defs.d/NOLOGINS_FILE.xml,
man/login.defs.d/OBSCURE_CHECKS_ENAB.xml,
man/login.defs.d/PASS_ALWAYS_WARN.xml,
man/login.defs.d/PASS_CHANGE_TRIES.xml,
man/login.defs.d/PASS_MAX_LEN.xml,
man/login.defs.d/PORTTIME_CHECKS_ENAB.xml,
man/login.defs.d/QUOTAS_ENAB.xml, man/login.defs.d/SULOG_FILE.xml,
man/login.defs.d/SU_NAME.xml, man/login.defs.d/SU_WHEEL_ONLY.xml,
man/login.defs.d/SYSLOG_SG_ENAB.xml,
man/login.defs.d/SYSLOG_SU_ENAB.xml,
man/login.defs.d/TTYGROUP.xml, man/login.defs.d/TTYTYPE_FILE.xml,
man/login.defs.d/ULIMIT.xml, man/login.defs.d/USERGROUPS_ENAB.xml:
New documentation of login.defs variables.
* man/login.defs.d/MAIL_DIR.xml: Updated. It now contains the
MAIL_FILE documentation.
* man/login.defs.d/LOGIN_STRING.xml: Updated. Mentions %s.
* man/pwconv.8.xml, man/groupmems.8.xml, man/groupdel.8.xml,
man/useradd.8.xml, man/pwck.8.xml, man/groupadd.8.xml,
man/sulogin.8.xml, man/newgrp.1.xml, man/usermod.8.xml,
man/su.1.xml, man/vipw.8.xml, man/passwd.1.xml,
man/groupmod.8.xml, man/login.1.xml, man/userdel.8.xml,
man/grpck.8.xml: Added CONFIGURATION section.
* man/generate_mans.mak: The generations of manpages depends on
the variables from the Makefiles. Add the dependency on Makefile.
* man/login.defs.5.xml: New login.defs variable documented.
* man/Makefile.am: Added XML variable documentation to the
distributed files.
2007-12-09 04:54:40 +05:30
|
|
|
<!ENTITY GID_MAX SYSTEM "login.defs.d/GID_MAX.xml">
|
|
|
|
<!ENTITY MAIL_DIR SYSTEM "login.defs.d/MAIL_DIR.xml">
|
|
|
|
<!ENTITY MAX_MEMBERS_PER_GROUP SYSTEM "login.defs.d/MAX_MEMBERS_PER_GROUP.xml">
|
|
|
|
<!ENTITY PASS_MAX_DAYS SYSTEM "login.defs.d/PASS_MAX_DAYS.xml">
|
|
|
|
<!ENTITY PASS_MIN_DAYS SYSTEM "login.defs.d/PASS_MIN_DAYS.xml">
|
|
|
|
<!ENTITY PASS_WARN_AGE SYSTEM "login.defs.d/PASS_WARN_AGE.xml">
|
2008-02-26 02:33:46 +05:30
|
|
|
<!ENTITY SYS_GID_MAX SYSTEM "login.defs.d/SYS_GID_MAX.xml">
|
|
|
|
<!ENTITY SYS_UID_MAX SYSTEM "login.defs.d/SYS_UID_MAX.xml">
|
* man/login.defs.d/CONSOLE_GROUPS.xml,
man/login.defs.d/CONSOLE.xml, man/login.defs.d/DEFAULT_HOME.xml,
man/login.defs.d/ENV_HZ.xml, man/login.defs.d/ENVIRON_FILE.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml,
man/login.defs.d/ENV_TZ.xml, man/login.defs.d/ERASECHAR.xml,
man/login.defs.d/FAIL_DELAY.xml,
man/login.defs.d/FAILLOG_ENAB.xml,
man/login.defs.d/FAKE_SHELL.xml, man/login.defs.d/FTMP_FILE.xml,
man/login.defs.d/HUSHLOGIN_FILE.xml,
man/login.defs.d/ISSUE_FILE.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/LASTLOG_ENAB.xml, man/login.defs.d/LOGIN_RETRIES.xml,
man/login.defs.d/LOGIN_TIMEOUT.xml, man/login.defs.d/LOG_OK_LOGINS.xml,
man/login.defs.d/LOG_UNKFAIL_ENAB.xml,
man/login.defs.d/MAIL_CHECK_ENAB.xml, man/login.defs.d/MOTD_FILE.xml,
man/login.defs.d/NOLOGINS_FILE.xml,
man/login.defs.d/OBSCURE_CHECKS_ENAB.xml,
man/login.defs.d/PASS_ALWAYS_WARN.xml,
man/login.defs.d/PASS_CHANGE_TRIES.xml,
man/login.defs.d/PASS_MAX_LEN.xml,
man/login.defs.d/PORTTIME_CHECKS_ENAB.xml,
man/login.defs.d/QUOTAS_ENAB.xml, man/login.defs.d/SULOG_FILE.xml,
man/login.defs.d/SU_NAME.xml, man/login.defs.d/SU_WHEEL_ONLY.xml,
man/login.defs.d/SYSLOG_SG_ENAB.xml,
man/login.defs.d/SYSLOG_SU_ENAB.xml,
man/login.defs.d/TTYGROUP.xml, man/login.defs.d/TTYTYPE_FILE.xml,
man/login.defs.d/ULIMIT.xml, man/login.defs.d/USERGROUPS_ENAB.xml:
New documentation of login.defs variables.
* man/login.defs.d/MAIL_DIR.xml: Updated. It now contains the
MAIL_FILE documentation.
* man/login.defs.d/LOGIN_STRING.xml: Updated. Mentions %s.
* man/pwconv.8.xml, man/groupmems.8.xml, man/groupdel.8.xml,
man/useradd.8.xml, man/pwck.8.xml, man/groupadd.8.xml,
man/sulogin.8.xml, man/newgrp.1.xml, man/usermod.8.xml,
man/su.1.xml, man/vipw.8.xml, man/passwd.1.xml,
man/groupmod.8.xml, man/login.1.xml, man/userdel.8.xml,
man/grpck.8.xml: Added CONFIGURATION section.
* man/generate_mans.mak: The generations of manpages depends on
the variables from the Makefiles. Add the dependency on Makefile.
* man/login.defs.5.xml: New login.defs variable documented.
* man/Makefile.am: Added XML variable documentation to the
distributed files.
2007-12-09 04:54:40 +05:30
|
|
|
<!ENTITY UID_MAX SYSTEM "login.defs.d/UID_MAX.xml">
|
|
|
|
<!ENTITY UMASK SYSTEM "login.defs.d/UMASK.xml">
|
* man/chage.1.xml, man/login.defs.5.xml, man/pwck.8.xml,
man/pwconv.8.xml, man/useradd.8.xml, man/userdel.8.xml,
man/usermod.8.xml, man/vipw.8.xml: Document the usage of the
TCB_AUTH_GROUP, TCB_SYMLINKS, and USE_TCB configuration
parameters.
* man/pwconv.8.xml, man/pwck.8.xml: Document the behavior when
USE_TCB is enabled.
2010-03-17 00:45:05 +05:30
|
|
|
<!ENTITY TCB_AUTH_GROUP SYSTEM "login.defs.d/TCB_AUTH_GROUP.xml">
|
|
|
|
<!ENTITY TCB_SYMLINKS SYSTEM "login.defs.d/TCB_SYMLINKS.xml">
|
|
|
|
<!ENTITY USE_TCB SYSTEM "login.defs.d/USE_TCB.xml">
|
2008-02-26 02:33:46 +05:30
|
|
|
<!ENTITY USERGROUPS_ENAB SYSTEM "login.defs.d/USERGROUPS_ENAB.xml">
|
2011-07-09 01:19:09 +05:30
|
|
|
<!-- SHADOW-CONFIG-HERE -->
|
* man/login.defs.d/CONSOLE_GROUPS.xml,
man/login.defs.d/CONSOLE.xml, man/login.defs.d/DEFAULT_HOME.xml,
man/login.defs.d/ENV_HZ.xml, man/login.defs.d/ENVIRON_FILE.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml,
man/login.defs.d/ENV_TZ.xml, man/login.defs.d/ERASECHAR.xml,
man/login.defs.d/FAIL_DELAY.xml,
man/login.defs.d/FAILLOG_ENAB.xml,
man/login.defs.d/FAKE_SHELL.xml, man/login.defs.d/FTMP_FILE.xml,
man/login.defs.d/HUSHLOGIN_FILE.xml,
man/login.defs.d/ISSUE_FILE.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/LASTLOG_ENAB.xml, man/login.defs.d/LOGIN_RETRIES.xml,
man/login.defs.d/LOGIN_TIMEOUT.xml, man/login.defs.d/LOG_OK_LOGINS.xml,
man/login.defs.d/LOG_UNKFAIL_ENAB.xml,
man/login.defs.d/MAIL_CHECK_ENAB.xml, man/login.defs.d/MOTD_FILE.xml,
man/login.defs.d/NOLOGINS_FILE.xml,
man/login.defs.d/OBSCURE_CHECKS_ENAB.xml,
man/login.defs.d/PASS_ALWAYS_WARN.xml,
man/login.defs.d/PASS_CHANGE_TRIES.xml,
man/login.defs.d/PASS_MAX_LEN.xml,
man/login.defs.d/PORTTIME_CHECKS_ENAB.xml,
man/login.defs.d/QUOTAS_ENAB.xml, man/login.defs.d/SULOG_FILE.xml,
man/login.defs.d/SU_NAME.xml, man/login.defs.d/SU_WHEEL_ONLY.xml,
man/login.defs.d/SYSLOG_SG_ENAB.xml,
man/login.defs.d/SYSLOG_SU_ENAB.xml,
man/login.defs.d/TTYGROUP.xml, man/login.defs.d/TTYTYPE_FILE.xml,
man/login.defs.d/ULIMIT.xml, man/login.defs.d/USERGROUPS_ENAB.xml:
New documentation of login.defs variables.
* man/login.defs.d/MAIL_DIR.xml: Updated. It now contains the
MAIL_FILE documentation.
* man/login.defs.d/LOGIN_STRING.xml: Updated. Mentions %s.
* man/pwconv.8.xml, man/groupmems.8.xml, man/groupdel.8.xml,
man/useradd.8.xml, man/pwck.8.xml, man/groupadd.8.xml,
man/sulogin.8.xml, man/newgrp.1.xml, man/usermod.8.xml,
man/su.1.xml, man/vipw.8.xml, man/passwd.1.xml,
man/groupmod.8.xml, man/login.1.xml, man/userdel.8.xml,
man/grpck.8.xml: Added CONFIGURATION section.
* man/generate_mans.mak: The generations of manpages depends on
the variables from the Makefiles. Add the dependency on Makefile.
* man/login.defs.5.xml: New login.defs variable documented.
* man/Makefile.am: Added XML variable documentation to the
distributed files.
2007-12-09 04:54:40 +05:30
|
|
|
]>
|
2007-10-07 17:16:16 +05:30
|
|
|
<refentry id='useradd.8'>
|
2007-11-11 05:16:11 +05:30
|
|
|
<!-- $Id$ -->
|
2007-10-07 17:16:16 +05:30
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>useradd</refentrytitle>
|
|
|
|
<manvolnum>8</manvolnum>
|
2007-10-07 17:17:11 +05:30
|
|
|
<refmiscinfo class="sectdesc">System Management Commands</refmiscinfo>
|
2011-07-09 01:19:09 +05:30
|
|
|
<refmiscinfo class="source">shadow-utils</refmiscinfo>
|
|
|
|
<refmiscinfo class="version">&SHADOW_UTILS_VERSION;</refmiscinfo>
|
2007-10-07 17:16:16 +05:30
|
|
|
</refmeta>
|
|
|
|
<refnamediv id='name'>
|
|
|
|
<refname>useradd</refname>
|
2007-10-07 17:17:22 +05:30
|
|
|
<refpurpose>create a new user or update default new user information</refpurpose>
|
2007-10-07 17:16:16 +05:30
|
|
|
</refnamediv>
|
|
|
|
<refsynopsisdiv id='synopsis'>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>useradd</command>
|
2007-10-07 17:16:16 +05:30
|
|
|
<arg choice='opt'>
|
2007-10-07 17:17:01 +05:30
|
|
|
<replaceable>options</replaceable>
|
2007-10-07 17:16:16 +05:30
|
|
|
</arg>
|
2007-10-07 17:16:34 +05:30
|
|
|
<arg choice='plain'><replaceable>LOGIN</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>useradd</command>
|
2007-10-07 17:16:34 +05:30
|
|
|
<arg choice='plain'>-D </arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>useradd</command>
|
2007-10-07 17:16:34 +05:30
|
|
|
<arg choice='plain'>-D </arg>
|
2007-10-07 17:16:16 +05:30
|
|
|
<arg choice='opt'>
|
2007-10-07 17:17:01 +05:30
|
|
|
<replaceable>options</replaceable>
|
2007-10-07 17:16:16 +05:30
|
|
|
</arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='description'>
|
|
|
|
<title>DESCRIPTION</title>
|
|
|
|
<para>
|
2007-10-07 17:17:01 +05:30
|
|
|
When invoked without the <option>-D</option> option, the
|
|
|
|
<command>useradd</command> command creates a new user account using
|
2007-10-07 20:06:51 +05:30
|
|
|
the values specified on the command line plus the default values from
|
|
|
|
the system. Depending on command line options, the
|
|
|
|
<command>useradd</command> command
|
2007-10-07 17:17:01 +05:30
|
|
|
will update system files and may also create the new user's home
|
|
|
|
directory and copy initial files.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2008-09-13 17:25:41 +05:30
|
|
|
<para>
|
|
|
|
By default, a group will also be created for the new user (see
|
|
|
|
<option>-g</option>, <option>-N</option>, <option>-U</option>, and
|
|
|
|
<option>USERGROUPS_ENAB</option>).
|
|
|
|
</para>
|
2007-10-07 17:16:16 +05:30
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='options'>
|
|
|
|
<title>OPTIONS</title>
|
|
|
|
<para>The options which apply to the <command>useradd</command> command are:
|
|
|
|
</para>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-b</option>, <option>--base-dir</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>BASE_DIR</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The default base directory for the system if <option>-d</option>
|
2007-11-17 20:57:12 +05:30
|
|
|
<replaceable>HOME_DIR</replaceable> is not specified.
|
|
|
|
<replaceable>BASE_DIR</replaceable> is
|
2007-10-07 17:17:01 +05:30
|
|
|
concatenated with the account name to define the home directory.
|
2007-10-07 17:17:22 +05:30
|
|
|
If the <option>-m</option> option is not used,
|
|
|
|
<replaceable>BASE_DIR</replaceable> must exist.
|
2007-10-07 17:16:34 +05:30
|
|
|
</para>
|
2008-08-31 23:01:00 +05:30
|
|
|
<para>
|
|
|
|
If this option is not specified, <command>useradd</command>
|
|
|
|
will use the base directory specified by the
|
|
|
|
<option>HOME</option> variable in
|
|
|
|
<filename>/etc/default/useradd</filename>, or
|
|
|
|
<filename>/home</filename> by default.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:34 +05:30
|
|
|
</varlistentry>
|
2007-10-07 20:06:51 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2008-05-20 02:34:34 +05:30
|
|
|
<option>-c</option>, <option>--comment</option>
|
|
|
|
<replaceable>COMMENT</replaceable>
|
2007-10-07 20:06:51 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2008-05-20 02:34:34 +05:30
|
|
|
Any text string. It is generally a short description of the
|
|
|
|
login, and is currently used as the field for the user's full
|
|
|
|
name.
|
2007-10-07 20:06:51 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-10-07 17:16:34 +05:30
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-d</option>, <option>--home</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>HOME_DIR</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The new user will be created using
|
|
|
|
<replaceable>HOME_DIR</replaceable> as the value for the user's
|
|
|
|
login directory. The default is to append the
|
|
|
|
<replaceable>LOGIN</replaceable> name to
|
|
|
|
<replaceable>BASE_DIR</replaceable> and use that as the login
|
2007-10-07 17:17:22 +05:30
|
|
|
directory name. The directory <replaceable>HOME_DIR</replaceable>
|
|
|
|
does not have to exist but will not be created if it is missing.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
2008-05-20 02:34:34 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-D</option>, <option>--defaults</option>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
See below, the subsection "Changing the default values".
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-10-07 17:16:16 +05:30
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-e</option>, <option>--expiredate</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>EXPIRE_DATE</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The date on which the user account will be disabled. The date is
|
|
|
|
specified in the format <emphasis remap='I'>YYYY-MM-DD</emphasis>.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2008-08-31 23:01:00 +05:30
|
|
|
<para>
|
|
|
|
If not specified, <command>useradd</command> will use the
|
|
|
|
default expiry date specified by the <option>EXPIRE</option>
|
|
|
|
variable in <filename>/etc/default/useradd</filename>, or
|
|
|
|
an empty string (no expiry) by default.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-f</option>, <option>--inactive</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>INACTIVE</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The number of days after a password expires until the account is
|
|
|
|
permanently disabled. A value of 0 disables the account as soon
|
|
|
|
as the password has expired, and a value of -1 disables the
|
2008-08-31 23:01:00 +05:30
|
|
|
feature.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
If not specified, <command>useradd</command> will use the
|
|
|
|
default inactivity period specified by the
|
2009-05-21 17:32:12 +05:30
|
|
|
<option>INACTIVE</option> variable in
|
2008-08-31 23:01:00 +05:30
|
|
|
<filename>/etc/default/useradd</filename>, or -1 by default.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-g</option>, <option>--gid</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>GROUP</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The group name or number of the user's initial login group. The
|
|
|
|
group name must exist. A group number must refer to an already
|
2008-08-31 23:01:00 +05:30
|
|
|
existing group.
|
|
|
|
</para>
|
|
|
|
<para>
|
2010-04-05 04:47:11 +05:30
|
|
|
If not specified, the behavior of <command>useradd</command>
|
2008-08-31 23:01:00 +05:30
|
|
|
will depend on the <option>USERGROUPS_ENAB</option> variable
|
|
|
|
in <filename>/etc/login.defs</filename>. If this variable is
|
|
|
|
set to <replaceable>yes</replaceable> (or
|
|
|
|
<option>-U/--user-group</option> is specified on the command
|
|
|
|
line), a group will be created for the user, with the same
|
|
|
|
name as her loginname. If the variable is set to
|
|
|
|
<replaceable>no</replaceable> (or
|
|
|
|
<option>-N/--no-user-group</option> is specified on the
|
|
|
|
command line), useradd will set the primary group of the new
|
|
|
|
user to the value specified by the <option>GROUP</option>
|
|
|
|
variable in <filename>/etc/default/useradd</filename>, or
|
|
|
|
100 by default.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-G</option>, <option>--groups</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>GROUP1</replaceable>[<emphasis remap='I'>,GROUP2,...</emphasis>[<emphasis remap='I'>,GROUPN</emphasis>]]]
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
A list of supplementary groups which the user is also a member
|
|
|
|
of. Each group is separated from the next by a comma, with no
|
|
|
|
intervening whitespace. The groups are subject to the same
|
|
|
|
restrictions as the group given with the <option>-g</option>
|
|
|
|
option. The default is for the user to belong only to the
|
|
|
|
initial group.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:16:34 +05:30
|
|
|
<term><option>-h</option>, <option>--help</option></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Display help message and exit.</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
2008-05-20 03:02:19 +05:30
|
|
|
<option>-k</option>, <option>--skel</option>
|
|
|
|
<replaceable>SKEL_DIR</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2008-05-20 03:02:19 +05:30
|
|
|
The skeleton directory, which contains files and directories
|
|
|
|
to be copied in the user's home directory, when the home
|
|
|
|
directory is created by <command>useradd</command>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
This option is only valid if the <option>-m</option> (or
|
|
|
|
<option>--create-home</option>) option is specified.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
If this option is not set, the skeleton directory is defined
|
2008-08-31 23:01:00 +05:30
|
|
|
by the <option>SKEL</option> variable in
|
|
|
|
<filename>/etc/default/useradd</filename> or, by default,
|
2008-05-20 03:02:19 +05:30
|
|
|
<filename>/etc/skel</filename>.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
2010-03-31 02:31:27 +05:30
|
|
|
<para>
|
|
|
|
If possible, the ACLs and extended attributes are copied.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-K</option>, <option>--key</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>KEY</replaceable>=<replaceable>VALUE</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2009-05-21 17:32:12 +05:30
|
|
|
Overrides <filename>/etc/login.defs</filename> defaults
|
|
|
|
(<option>UID_MIN</option>, <option>UID_MAX</option>,
|
|
|
|
<option>UMASK</option>, <option>PASS_MAX_DAYS</option>
|
|
|
|
and others).
|
2007-10-07 17:16:34 +05:30
|
|
|
<para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
|
|
|
Example: <option>-K </option><replaceable>PASS_MAX_DAYS</replaceable>=<replaceable>-1</replaceable>
|
|
|
|
can be used when creating system account to turn off password
|
|
|
|
ageing, even though system account has no password at all.
|
|
|
|
Multiple <option>-K</option> options can be specified, e.g.:
|
|
|
|
<option>-K </option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>UID_MIN</replaceable>=<replaceable>100</replaceable>
|
2009-05-20 01:56:56 +05:30
|
|
|
<option>-K </option>
|
2007-10-07 17:17:01 +05:30
|
|
|
<replaceable>UID_MAX</replaceable>=<replaceable>499</replaceable>
|
2007-10-07 17:16:34 +05:30
|
|
|
</para>
|
2010-03-20 15:53:57 +05:30
|
|
|
<!--para>
|
2007-10-07 17:17:01 +05:30
|
|
|
Note: <option>-K </option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>UID_MIN</replaceable>=<replaceable>10</replaceable>,<replaceable>UID_MAX</replaceable>=<replaceable>499</replaceable>
|
|
|
|
doesn't work yet.
|
2010-03-20 15:53:57 +05:30
|
|
|
</para-->
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:34 +05:30
|
|
|
</varlistentry>
|
2007-12-26 15:45:20 +05:30
|
|
|
<varlistentry>
|
2009-03-14 04:00:38 +05:30
|
|
|
<term><option>-l</option>, <option>--no-log-init</option></term>
|
2007-12-26 15:45:20 +05:30
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Do not add the user to the lastlog and faillog databases.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
By default, the user's entries in the lastlog and faillog
|
|
|
|
databases are resetted to avoid reusing the entry from a previously
|
|
|
|
deleted user.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2008-05-20 03:02:19 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-m</option>, <option>--create-home</option>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Create the user's home directory if it does not exist.
|
|
|
|
The files and directories contained in the skeleton directory
|
|
|
|
(which can be defined with the <option>-k</option> option)
|
|
|
|
will be copied to the home directory.
|
|
|
|
</para>
|
|
|
|
<para>
|
2010-03-20 15:53:57 +05:30
|
|
|
By default, if this option is not specified and
|
|
|
|
<option>CREATE_HOME</option> is not enabled, no home
|
|
|
|
directories are created.
|
2008-05-20 03:02:19 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2008-09-13 17:25:41 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-M</option>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Do no create the user's home directory, even if the system
|
|
|
|
wide setting from <filename>/etc/login.defs</filename>
|
|
|
|
(<option>CREATE_HOME</option>) is set to
|
|
|
|
<replaceable>yes</replaceable>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2008-02-26 02:33:46 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-N</option>, <option>--no-user-group</option>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Do not create a group with the same name as the user, but
|
|
|
|
add the user to the group specified by the <option>-g</option>
|
2009-05-21 17:32:12 +05:30
|
|
|
option or by the <option>GROUP</option> variable in
|
2008-02-26 02:33:46 +05:30
|
|
|
<filename>/etc/default/useradd</filename>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The default behavior (if the <option>-g</option>,
|
|
|
|
<option>-N</option>, and <option>-U</option> options are not
|
|
|
|
specified) is defined by the <option>USERGROUPS_ENAB</option>
|
2008-08-31 23:01:00 +05:30
|
|
|
variable in <filename>/etc/login.defs</filename>.
|
2008-02-26 02:33:46 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-10-07 17:16:34 +05:30
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-o</option>, <option>--non-unique</option>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:22 +05:30
|
|
|
<para>Allow the creation of a user account with a duplicate (non-unique) UID.</para>
|
2008-08-31 23:01:08 +05:30
|
|
|
<para>
|
|
|
|
This option is only valid in combination with the
|
2010-03-20 15:53:57 +05:30
|
|
|
<option>-u</option> option.
|
2008-08-31 23:01:08 +05:30
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-p</option>, <option>--password</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>PASSWORD</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The encrypted password, as returned by <citerefentry>
|
|
|
|
<refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
|
2009-05-20 03:07:53 +05:30
|
|
|
</citerefentry>. The default is to disable the password.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
2009-04-28 01:59:43 +05:30
|
|
|
<para>
|
|
|
|
<emphasis role="bold">Note:</emphasis> This option is not
|
|
|
|
recommended because the password (or encrypted password) will
|
|
|
|
be visible by users listing the processes.
|
|
|
|
</para>
|
2009-05-20 02:59:26 +05:30
|
|
|
<para>
|
|
|
|
You should make sure the password respects the system's
|
|
|
|
password policy.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
2008-05-20 01:13:24 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-r</option>, <option>--system</option>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Create a system account.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
System users will be created with no aging information in
|
2008-05-20 02:23:12 +05:30
|
|
|
<filename>/etc/shadow</filename>, and their numeric
|
2010-04-05 04:47:11 +05:30
|
|
|
identifiers are chosen in the
|
2008-05-20 01:13:24 +05:30
|
|
|
<option>SYS_UID_MIN</option>-<option>SYS_UID_MAX</option>
|
2008-08-31 23:01:00 +05:30
|
|
|
range, defined in <filename>/etc/login.defs</filename>, instead of
|
2008-05-20 01:13:24 +05:30
|
|
|
<option>UID_MIN</option>-<option>UID_MAX</option> (and their
|
|
|
|
<option>GID</option> counterparts for the creation of groups).
|
|
|
|
</para>
|
2008-09-13 17:25:41 +05:30
|
|
|
<para>
|
|
|
|
Note that <command>useradd</command> will not create a home
|
|
|
|
directory for such an user, regardless of the default setting
|
|
|
|
in <filename>/etc/login.defs</filename>
|
|
|
|
(<option>CREATE_HOME</option>). You have to specify the
|
|
|
|
<option>-m</option> options if you want a home directory for a
|
|
|
|
system account to be created.
|
|
|
|
</para>
|
2008-05-20 01:13:24 +05:30
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-10-07 17:16:16 +05:30
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-s</option>, <option>--shell</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>SHELL</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The name of the user's login shell. The default is to leave this
|
|
|
|
field blank, which causes the system to select the default login
|
2008-08-31 23:01:00 +05:30
|
|
|
shell specified by the <option>SHELL</option> variable in
|
|
|
|
<filename>/etc/default/useradd</filename>, or an empty string
|
|
|
|
by default.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-u</option>, <option>--uid</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>UID</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The numerical value of the user's ID. This value must be unique,
|
|
|
|
unless the <option>-o</option> option is used. The value must be
|
|
|
|
non-negative. The default is to use the smallest ID value
|
|
|
|
greater than 999 and greater than every other user. Values
|
|
|
|
between 0 and 999 are typically reserved for system accounts.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
2008-02-26 02:33:46 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-U</option>, <option>--user-group</option>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Create a group with the same name as the user, and
|
|
|
|
add the user to this group.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The default behavior (if the <option>-g</option>,
|
|
|
|
<option>-N</option>, and <option>-U</option> options are not
|
|
|
|
specified) is defined by the <option>USERGROUPS_ENAB</option>
|
2008-08-31 23:01:00 +05:30
|
|
|
variable in <filename>/etc/login.defs</filename>.
|
2008-02-26 02:33:46 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2009-04-11 21:04:10 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-Z</option>, <option>--selinux-user</option>
|
|
|
|
<replaceable>SEUSER</replaceable>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The SELinux user for the user's login. The default is to leave this
|
|
|
|
field blank, which causes the system to select the default SELinux
|
|
|
|
user.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-10-07 17:16:16 +05:30
|
|
|
</variablelist>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect2 id='changing_the_default_values'>
|
|
|
|
<title>Changing the default values</title>
|
|
|
|
<para>
|
2007-10-07 20:06:51 +05:30
|
|
|
When invoked with only the <option>-D</option> option,
|
|
|
|
<command>useradd</command> will display the current default values.
|
|
|
|
When invoked with <option>-D</option> plus other options,
|
|
|
|
<command>useradd</command> will update the default values for the
|
|
|
|
specified options. Valid default-changing options are:
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
<variablelist remap='IP'>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2007-10-07 17:17:57 +05:30
|
|
|
<option>-b</option>, <option>--base-dir</option>
|
|
|
|
<replaceable>BASE_DIR</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2007-10-07 20:06:51 +05:30
|
|
|
The path prefix for a new user's home directory. The
|
2007-10-07 17:17:01 +05:30
|
|
|
user's name will be affixed to the end of
|
2007-10-07 20:06:51 +05:30
|
|
|
<replaceable>BASE_DIR</replaceable> to form the new user's
|
|
|
|
home directory name, if the <option>-d</option> option is not used
|
2007-10-07 17:17:01 +05:30
|
|
|
when creating a new account.
|
|
|
|
</para>
|
2008-08-31 23:01:00 +05:30
|
|
|
<para>
|
|
|
|
This option sets the <option>HOME</option> variable in
|
|
|
|
<filename>/etc/default/useradd</filename>.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2007-10-07 17:17:57 +05:30
|
|
|
<option>-e</option>, <option>--expiredate</option>
|
|
|
|
<replaceable>EXPIRE_DATE</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>The date on which the user account is disabled.</para>
|
2008-08-31 23:01:00 +05:30
|
|
|
<para>
|
|
|
|
This option sets the <option>EXPIRE</option> variable in
|
|
|
|
<filename>/etc/default/useradd</filename>.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2007-10-07 17:17:57 +05:30
|
|
|
<option>-f</option>, <option>--inactive</option>
|
|
|
|
<replaceable>INACTIVE</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The number of days after a password has expired before the
|
|
|
|
account will be disabled.
|
|
|
|
</para>
|
2008-08-31 23:01:00 +05:30
|
|
|
<para>
|
|
|
|
This option sets the <option>INACTIVE</option> variable in
|
|
|
|
<filename>/etc/default/useradd</filename>.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-g</option>, <option>--gid</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>GROUP</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2008-08-31 23:01:00 +05:30
|
|
|
The group name or ID for a new user's initial group (when
|
|
|
|
the <option>-N/--no-user-group</option> is used or when the
|
|
|
|
<option>USERGROUPS_ENAB</option> variable is set to
|
|
|
|
<replaceable>no</replaceable> in
|
|
|
|
<filename>/etc/login.defs</filename>. The named
|
2007-10-07 17:17:01 +05:30
|
|
|
group must exist, and a numerical group ID must have an
|
|
|
|
existing entry.
|
|
|
|
</para>
|
2008-08-31 23:01:00 +05:30
|
|
|
<para>
|
|
|
|
This option sets the <option>GROUP</option> variable in
|
|
|
|
<filename>/etc/default/useradd</filename>.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-s</option>, <option>--shell</option>
|
2007-10-07 17:16:34 +05:30
|
|
|
<replaceable>SHELL</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2007-10-07 20:06:51 +05:30
|
|
|
The name of a new user's login shell.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
2008-08-31 23:01:00 +05:30
|
|
|
<para>
|
|
|
|
This option sets the <option>SHELL</option> variable in
|
|
|
|
<filename>/etc/default/useradd</filename>.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-10-07 17:16:16 +05:30
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</refsect2>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='notes'>
|
|
|
|
<title>NOTES</title>
|
|
|
|
<para>The system administrator is responsible for placing the default
|
2008-08-31 23:01:00 +05:30
|
|
|
user files in the <filename>/etc/skel/</filename> directory (or any
|
|
|
|
other skeleton directory specified in
|
|
|
|
<filename>/etc/default/useradd</filename> or on the command line).
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='caveats'>
|
|
|
|
<title>CAVEATS</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
2007-11-17 23:43:17 +05:30
|
|
|
You may not add a user to a NIS or LDAP group. This must be
|
|
|
|
performed on the corresponding server.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
2007-10-07 17:17:11 +05:30
|
|
|
|
|
|
|
<para>
|
|
|
|
Similarly, if the username already exists in an external user
|
2007-11-17 23:43:17 +05:30
|
|
|
database such as NIS or LDAP, <command>useradd</command> will deny
|
2007-10-07 17:17:11 +05:30
|
|
|
the user account creation request.
|
|
|
|
</para>
|
|
|
|
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
2009-05-19 04:13:59 +05:30
|
|
|
Usernames must start with a lower case letter or an underscore,
|
|
|
|
followed by lower case letters, digits, underscores, or dashes.
|
|
|
|
They can end with a dollar sign.
|
|
|
|
In regular expression terms: [a-z_][a-z0-9_-]*[$]?
|
2008-08-15 20:55:53 +05:30
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Usernames may only be up to 32 characters long.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
* man/login.defs.d/CONSOLE_GROUPS.xml,
man/login.defs.d/CONSOLE.xml, man/login.defs.d/DEFAULT_HOME.xml,
man/login.defs.d/ENV_HZ.xml, man/login.defs.d/ENVIRON_FILE.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml,
man/login.defs.d/ENV_TZ.xml, man/login.defs.d/ERASECHAR.xml,
man/login.defs.d/FAIL_DELAY.xml,
man/login.defs.d/FAILLOG_ENAB.xml,
man/login.defs.d/FAKE_SHELL.xml, man/login.defs.d/FTMP_FILE.xml,
man/login.defs.d/HUSHLOGIN_FILE.xml,
man/login.defs.d/ISSUE_FILE.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/LASTLOG_ENAB.xml, man/login.defs.d/LOGIN_RETRIES.xml,
man/login.defs.d/LOGIN_TIMEOUT.xml, man/login.defs.d/LOG_OK_LOGINS.xml,
man/login.defs.d/LOG_UNKFAIL_ENAB.xml,
man/login.defs.d/MAIL_CHECK_ENAB.xml, man/login.defs.d/MOTD_FILE.xml,
man/login.defs.d/NOLOGINS_FILE.xml,
man/login.defs.d/OBSCURE_CHECKS_ENAB.xml,
man/login.defs.d/PASS_ALWAYS_WARN.xml,
man/login.defs.d/PASS_CHANGE_TRIES.xml,
man/login.defs.d/PASS_MAX_LEN.xml,
man/login.defs.d/PORTTIME_CHECKS_ENAB.xml,
man/login.defs.d/QUOTAS_ENAB.xml, man/login.defs.d/SULOG_FILE.xml,
man/login.defs.d/SU_NAME.xml, man/login.defs.d/SU_WHEEL_ONLY.xml,
man/login.defs.d/SYSLOG_SG_ENAB.xml,
man/login.defs.d/SYSLOG_SU_ENAB.xml,
man/login.defs.d/TTYGROUP.xml, man/login.defs.d/TTYTYPE_FILE.xml,
man/login.defs.d/ULIMIT.xml, man/login.defs.d/USERGROUPS_ENAB.xml:
New documentation of login.defs variables.
* man/login.defs.d/MAIL_DIR.xml: Updated. It now contains the
MAIL_FILE documentation.
* man/login.defs.d/LOGIN_STRING.xml: Updated. Mentions %s.
* man/pwconv.8.xml, man/groupmems.8.xml, man/groupdel.8.xml,
man/useradd.8.xml, man/pwck.8.xml, man/groupadd.8.xml,
man/sulogin.8.xml, man/newgrp.1.xml, man/usermod.8.xml,
man/su.1.xml, man/vipw.8.xml, man/passwd.1.xml,
man/groupmod.8.xml, man/login.1.xml, man/userdel.8.xml,
man/grpck.8.xml: Added CONFIGURATION section.
* man/generate_mans.mak: The generations of manpages depends on
the variables from the Makefiles. Add the dependency on Makefile.
* man/login.defs.5.xml: New login.defs variable documented.
* man/Makefile.am: Added XML variable documentation to the
distributed files.
2007-12-09 04:54:40 +05:30
|
|
|
<refsect1 id='configuration'>
|
|
|
|
<title>CONFIGURATION</title>
|
|
|
|
<para>
|
|
|
|
The following configuration variables in
|
|
|
|
<filename>/etc/login.defs</filename> change the behavior of this
|
|
|
|
tool:
|
|
|
|
</para>
|
|
|
|
<variablelist>
|
2009-01-19 15:30:53 +05:30
|
|
|
&CREATE_HOME;
|
* man/login.defs.d/CONSOLE_GROUPS.xml,
man/login.defs.d/CONSOLE.xml, man/login.defs.d/DEFAULT_HOME.xml,
man/login.defs.d/ENV_HZ.xml, man/login.defs.d/ENVIRON_FILE.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml,
man/login.defs.d/ENV_TZ.xml, man/login.defs.d/ERASECHAR.xml,
man/login.defs.d/FAIL_DELAY.xml,
man/login.defs.d/FAILLOG_ENAB.xml,
man/login.defs.d/FAKE_SHELL.xml, man/login.defs.d/FTMP_FILE.xml,
man/login.defs.d/HUSHLOGIN_FILE.xml,
man/login.defs.d/ISSUE_FILE.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/LASTLOG_ENAB.xml, man/login.defs.d/LOGIN_RETRIES.xml,
man/login.defs.d/LOGIN_TIMEOUT.xml, man/login.defs.d/LOG_OK_LOGINS.xml,
man/login.defs.d/LOG_UNKFAIL_ENAB.xml,
man/login.defs.d/MAIL_CHECK_ENAB.xml, man/login.defs.d/MOTD_FILE.xml,
man/login.defs.d/NOLOGINS_FILE.xml,
man/login.defs.d/OBSCURE_CHECKS_ENAB.xml,
man/login.defs.d/PASS_ALWAYS_WARN.xml,
man/login.defs.d/PASS_CHANGE_TRIES.xml,
man/login.defs.d/PASS_MAX_LEN.xml,
man/login.defs.d/PORTTIME_CHECKS_ENAB.xml,
man/login.defs.d/QUOTAS_ENAB.xml, man/login.defs.d/SULOG_FILE.xml,
man/login.defs.d/SU_NAME.xml, man/login.defs.d/SU_WHEEL_ONLY.xml,
man/login.defs.d/SYSLOG_SG_ENAB.xml,
man/login.defs.d/SYSLOG_SU_ENAB.xml,
man/login.defs.d/TTYGROUP.xml, man/login.defs.d/TTYTYPE_FILE.xml,
man/login.defs.d/ULIMIT.xml, man/login.defs.d/USERGROUPS_ENAB.xml:
New documentation of login.defs variables.
* man/login.defs.d/MAIL_DIR.xml: Updated. It now contains the
MAIL_FILE documentation.
* man/login.defs.d/LOGIN_STRING.xml: Updated. Mentions %s.
* man/pwconv.8.xml, man/groupmems.8.xml, man/groupdel.8.xml,
man/useradd.8.xml, man/pwck.8.xml, man/groupadd.8.xml,
man/sulogin.8.xml, man/newgrp.1.xml, man/usermod.8.xml,
man/su.1.xml, man/vipw.8.xml, man/passwd.1.xml,
man/groupmod.8.xml, man/login.1.xml, man/userdel.8.xml,
man/grpck.8.xml: Added CONFIGURATION section.
* man/generate_mans.mak: The generations of manpages depends on
the variables from the Makefiles. Add the dependency on Makefile.
* man/login.defs.5.xml: New login.defs variable documented.
* man/Makefile.am: Added XML variable documentation to the
distributed files.
2007-12-09 04:54:40 +05:30
|
|
|
&GID_MAX; <!-- documents also GID_MIN -->
|
|
|
|
&MAIL_DIR;
|
|
|
|
&MAX_MEMBERS_PER_GROUP;
|
|
|
|
&PASS_MAX_DAYS;
|
|
|
|
&PASS_MIN_DAYS;
|
|
|
|
&PASS_WARN_AGE;
|
2008-02-26 02:33:46 +05:30
|
|
|
&SYS_GID_MAX; <!-- documents also SYS_GID_MIN -->
|
|
|
|
&SYS_UID_MAX; <!-- documents also SYS_UID_MIN -->
|
* man/chage.1.xml, man/login.defs.5.xml, man/pwck.8.xml,
man/pwconv.8.xml, man/useradd.8.xml, man/userdel.8.xml,
man/usermod.8.xml, man/vipw.8.xml: Document the usage of the
TCB_AUTH_GROUP, TCB_SYMLINKS, and USE_TCB configuration
parameters.
* man/pwconv.8.xml, man/pwck.8.xml: Document the behavior when
USE_TCB is enabled.
2010-03-17 00:45:05 +05:30
|
|
|
&TCB_AUTH_GROUP;
|
|
|
|
&TCB_SYMLINKS;
|
* man/login.defs.d/CONSOLE_GROUPS.xml,
man/login.defs.d/CONSOLE.xml, man/login.defs.d/DEFAULT_HOME.xml,
man/login.defs.d/ENV_HZ.xml, man/login.defs.d/ENVIRON_FILE.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml,
man/login.defs.d/ENV_TZ.xml, man/login.defs.d/ERASECHAR.xml,
man/login.defs.d/FAIL_DELAY.xml,
man/login.defs.d/FAILLOG_ENAB.xml,
man/login.defs.d/FAKE_SHELL.xml, man/login.defs.d/FTMP_FILE.xml,
man/login.defs.d/HUSHLOGIN_FILE.xml,
man/login.defs.d/ISSUE_FILE.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/LASTLOG_ENAB.xml, man/login.defs.d/LOGIN_RETRIES.xml,
man/login.defs.d/LOGIN_TIMEOUT.xml, man/login.defs.d/LOG_OK_LOGINS.xml,
man/login.defs.d/LOG_UNKFAIL_ENAB.xml,
man/login.defs.d/MAIL_CHECK_ENAB.xml, man/login.defs.d/MOTD_FILE.xml,
man/login.defs.d/NOLOGINS_FILE.xml,
man/login.defs.d/OBSCURE_CHECKS_ENAB.xml,
man/login.defs.d/PASS_ALWAYS_WARN.xml,
man/login.defs.d/PASS_CHANGE_TRIES.xml,
man/login.defs.d/PASS_MAX_LEN.xml,
man/login.defs.d/PORTTIME_CHECKS_ENAB.xml,
man/login.defs.d/QUOTAS_ENAB.xml, man/login.defs.d/SULOG_FILE.xml,
man/login.defs.d/SU_NAME.xml, man/login.defs.d/SU_WHEEL_ONLY.xml,
man/login.defs.d/SYSLOG_SG_ENAB.xml,
man/login.defs.d/SYSLOG_SU_ENAB.xml,
man/login.defs.d/TTYGROUP.xml, man/login.defs.d/TTYTYPE_FILE.xml,
man/login.defs.d/ULIMIT.xml, man/login.defs.d/USERGROUPS_ENAB.xml:
New documentation of login.defs variables.
* man/login.defs.d/MAIL_DIR.xml: Updated. It now contains the
MAIL_FILE documentation.
* man/login.defs.d/LOGIN_STRING.xml: Updated. Mentions %s.
* man/pwconv.8.xml, man/groupmems.8.xml, man/groupdel.8.xml,
man/useradd.8.xml, man/pwck.8.xml, man/groupadd.8.xml,
man/sulogin.8.xml, man/newgrp.1.xml, man/usermod.8.xml,
man/su.1.xml, man/vipw.8.xml, man/passwd.1.xml,
man/groupmod.8.xml, man/login.1.xml, man/userdel.8.xml,
man/grpck.8.xml: Added CONFIGURATION section.
* man/generate_mans.mak: The generations of manpages depends on
the variables from the Makefiles. Add the dependency on Makefile.
* man/login.defs.5.xml: New login.defs variable documented.
* man/Makefile.am: Added XML variable documentation to the
distributed files.
2007-12-09 04:54:40 +05:30
|
|
|
&UID_MAX; <!-- documents also UID_MIN -->
|
|
|
|
&UMASK;
|
* man/chage.1.xml, man/login.defs.5.xml, man/pwck.8.xml,
man/pwconv.8.xml, man/useradd.8.xml, man/userdel.8.xml,
man/usermod.8.xml, man/vipw.8.xml: Document the usage of the
TCB_AUTH_GROUP, TCB_SYMLINKS, and USE_TCB configuration
parameters.
* man/pwconv.8.xml, man/pwck.8.xml: Document the behavior when
USE_TCB is enabled.
2010-03-17 00:45:05 +05:30
|
|
|
&USE_TCB;
|
2008-02-26 02:33:46 +05:30
|
|
|
&USERGROUPS_ENAB;
|
* man/login.defs.d/CONSOLE_GROUPS.xml,
man/login.defs.d/CONSOLE.xml, man/login.defs.d/DEFAULT_HOME.xml,
man/login.defs.d/ENV_HZ.xml, man/login.defs.d/ENVIRON_FILE.xml,
man/login.defs.d/ENV_PATH.xml, man/login.defs.d/ENV_SUPATH.xml,
man/login.defs.d/ENV_TZ.xml, man/login.defs.d/ERASECHAR.xml,
man/login.defs.d/FAIL_DELAY.xml,
man/login.defs.d/FAILLOG_ENAB.xml,
man/login.defs.d/FAKE_SHELL.xml, man/login.defs.d/FTMP_FILE.xml,
man/login.defs.d/HUSHLOGIN_FILE.xml,
man/login.defs.d/ISSUE_FILE.xml, man/login.defs.d/KILLCHAR.xml,
man/login.defs.d/LASTLOG_ENAB.xml, man/login.defs.d/LOGIN_RETRIES.xml,
man/login.defs.d/LOGIN_TIMEOUT.xml, man/login.defs.d/LOG_OK_LOGINS.xml,
man/login.defs.d/LOG_UNKFAIL_ENAB.xml,
man/login.defs.d/MAIL_CHECK_ENAB.xml, man/login.defs.d/MOTD_FILE.xml,
man/login.defs.d/NOLOGINS_FILE.xml,
man/login.defs.d/OBSCURE_CHECKS_ENAB.xml,
man/login.defs.d/PASS_ALWAYS_WARN.xml,
man/login.defs.d/PASS_CHANGE_TRIES.xml,
man/login.defs.d/PASS_MAX_LEN.xml,
man/login.defs.d/PORTTIME_CHECKS_ENAB.xml,
man/login.defs.d/QUOTAS_ENAB.xml, man/login.defs.d/SULOG_FILE.xml,
man/login.defs.d/SU_NAME.xml, man/login.defs.d/SU_WHEEL_ONLY.xml,
man/login.defs.d/SYSLOG_SG_ENAB.xml,
man/login.defs.d/SYSLOG_SU_ENAB.xml,
man/login.defs.d/TTYGROUP.xml, man/login.defs.d/TTYTYPE_FILE.xml,
man/login.defs.d/ULIMIT.xml, man/login.defs.d/USERGROUPS_ENAB.xml:
New documentation of login.defs variables.
* man/login.defs.d/MAIL_DIR.xml: Updated. It now contains the
MAIL_FILE documentation.
* man/login.defs.d/LOGIN_STRING.xml: Updated. Mentions %s.
* man/pwconv.8.xml, man/groupmems.8.xml, man/groupdel.8.xml,
man/useradd.8.xml, man/pwck.8.xml, man/groupadd.8.xml,
man/sulogin.8.xml, man/newgrp.1.xml, man/usermod.8.xml,
man/su.1.xml, man/vipw.8.xml, man/passwd.1.xml,
man/groupmod.8.xml, man/login.1.xml, man/userdel.8.xml,
man/grpck.8.xml: Added CONFIGURATION section.
* man/generate_mans.mak: The generations of manpages depends on
the variables from the Makefiles. Add the dependency on Makefile.
* man/login.defs.5.xml: New login.defs variable documented.
* man/Makefile.am: Added XML variable documentation to the
distributed files.
2007-12-09 04:54:40 +05:30
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='files'>
|
|
|
|
<title>FILES</title>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/etc/passwd</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:33 +05:30
|
|
|
<para>User account information.</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><filename>/etc/shadow</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:33 +05:30
|
|
|
<para>Secure user account information.</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/etc/group</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:33 +05:30
|
|
|
<para>Group account information.</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
2008-05-20 03:48:14 +05:30
|
|
|
<varlistentry condition="gshadow">
|
|
|
|
<term><filename>/etc/gshadow</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Secure group account information.</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-10-07 17:16:16 +05:30
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/etc/default/useradd</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:33 +05:30
|
|
|
<para>Default values for account creation.</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/etc/skel/</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:33 +05:30
|
|
|
<para>Directory containing default files.</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/etc/login.defs</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:33 +05:30
|
|
|
<para>Shadow password suite configuration.</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='exit_values'>
|
|
|
|
<title>EXIT VALUES</title>
|
2007-10-07 17:16:25 +05:30
|
|
|
<para>
|
2007-10-07 17:17:01 +05:30
|
|
|
The <command>useradd</command> command exits with the following values:
|
2007-10-07 17:16:25 +05:30
|
|
|
<variablelist>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>0</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>success</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>1</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>can't update password file</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>2</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>invalid command syntax</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>3</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>invalid argument to option</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>4</replaceable></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:11 +05:30
|
|
|
<para>UID already in use (and no <option>-o</option>)</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>6</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>specified group doesn't exist</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>9</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>username already in use</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>10</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>can't update group file</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>12</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>can't create home directory</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable>13</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>can't create mail spool</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:25 +05:30
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
2007-10-07 17:16:16 +05:30
|
|
|
</refsect1>
|
2007-10-07 17:16:25 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='see_also'>
|
|
|
|
<title>SEE ALSO</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>chfn</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>chsh</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>passwd</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>groupadd</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>groupdel</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>groupmod</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>login.defs</refentrytitle><manvolnum>5</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
2007-10-07 17:17:57 +05:30
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>newusers</refentrytitle><manvolnum>8</manvolnum>
|
|
|
|
</citerefentry>,
|
2007-10-07 17:16:16 +05:30
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>userdel</refentrytitle><manvolnum>8</manvolnum>
|
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>usermod</refentrytitle><manvolnum>8</manvolnum>
|
|
|
|
</citerefentry>.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|