summaryrefslogtreecommitdiff
path: root/man/useradd.8.xml
diff options
context:
space:
mode:
Diffstat (limited to 'man/useradd.8.xml')
-rw-r--r--man/useradd.8.xml14
1 files changed, 9 insertions, 5 deletions
diff --git a/man/useradd.8.xml b/man/useradd.8.xml
index af02a23f..a36db793 100644
--- a/man/useradd.8.xml
+++ b/man/useradd.8.xml
@@ -522,7 +522,7 @@
the system will use the <option>SHELL</option> variable specified
in <filename>/etc/default/useradd</filename>, or, if that is as
well not set, the field for the login shell in <filename>/etc/passwd
- </filename>remains empty.
+ </filename> remains empty.
</para>
</listitem>
</varlistentry>
@@ -692,10 +692,14 @@
</para>
<para>
- 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_-]*[$]?
+ Usernames may contain only lower and upper case letters, digits,
+ underscores, or dashes. They can end with a dollar sign.
+
+ Dashes are not allowed at the beginning of the username.
+ Fully numeric usernames and usernames . or .. are
+ also disallowed. It is not recommended to use usernames beginning
+ with . character as their home directories will be hidden in
+ the <command>ls</command> output.
</para>
<para>
Usernames may only be up to 32 characters long.