user name can start with an upper case letter

This commit is contained in:
guoxiaoqi 2020-02-06 11:42:54 +08:00
parent 209bf09451
commit 595190e27c
2 changed files with 24 additions and 10 deletions

View File

@ -64,7 +64,7 @@ Index: shadow-4.5/man/groupadd.8.xml
=================================================================== ===================================================================
--- shadow-4.5.orig/man/groupadd.8.xml --- shadow-4.5.orig/man/groupadd.8.xml
+++ shadow-4.5/man/groupadd.8.xml +++ shadow-4.5/man/groupadd.8.xml
@@ -256,12 +256,6 @@ @@ -256,10 +256,12 @@
<refsect1 id='caveats'> <refsect1 id='caveats'>
<title>CAVEATS</title> <title>CAVEATS</title>
<para> <para>
@ -72,16 +72,20 @@ Index: shadow-4.5/man/groupadd.8.xml
- followed by lower case letters, digits, underscores, or dashes. - followed by lower case letters, digits, underscores, or dashes.
- They can end with a dollar sign. - They can end with a dollar sign.
- In regular expression terms: [a-z_][a-z0-9_-]*[$]? - In regular expression terms: [a-z_][a-z0-9_-]*[$]?
- </para> + Groupnames may contain only lower and upper case letters, digits,
- <para> + underscores, or dashes. They can end with a dollar sign.
Groupnames may only be up to &GROUP_NAME_MAX_LENGTH; characters long. +
+ Dashes are not allowed at the beginning of the groupname.
+ Fully numeric groupnames and groupnames . or .. are
+ also disallowed.
</para> </para>
<para> <para>
Groupnames may only be up to &GROUP_NAME_MAX_LENGTH; characters long.
Index: shadow-4.5/man/useradd.8.xml Index: shadow-4.5/man/useradd.8.xml
=================================================================== ===================================================================
--- shadow-4.5.orig/man/useradd.8.xml --- shadow-4.5.orig/man/useradd.8.xml
+++ shadow-4.5/man/useradd.8.xml +++ shadow-4.5/man/useradd.8.xml
@@ -633,12 +633,6 @@ @@ -633,10 +633,14 @@
</para> </para>
<para> <para>
@ -89,8 +93,14 @@ Index: shadow-4.5/man/useradd.8.xml
- followed by lower case letters, digits, underscores, or dashes. - followed by lower case letters, digits, underscores, or dashes.
- They can end with a dollar sign. - They can end with a dollar sign.
- In regular expression terms: [a-z_][a-z0-9_-]*[$]? - In regular expression terms: [a-z_][a-z0-9_-]*[$]?
- </para> + Usernames may contain only lower and upper case letters, digits,
- <para> + underscores, or dashes. They can end with a dollar sign.
Usernames may only be up to 32 characters long. +
+ 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>
</refsect1> <para>
Usernames may only be up to 32 characters long.

View File

@ -1,6 +1,6 @@
Name: shadow Name: shadow
Version: 4.7 Version: 4.7
Release: 6 Release: 7
Epoch: 2 Epoch: 2
License: BSD and GPLv2+ License: BSD and GPLv2+
Summary: Tools for managing accounts and shadow password files Summary: Tools for managing accounts and shadow password files
@ -13,6 +13,7 @@ Source4: shadow-bsd.txt
Source5: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt Source5: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
# fix unknown item 'LASTLOG_MAX_UID' # fix unknown item 'LASTLOG_MAX_UID'
Patch1: usermod.c-Fix-invalid-variable-name.patch Patch1: usermod.c-Fix-invalid-variable-name.patch
Patch2: shadow-4.5-goodname.patch
Patch9000: shadow-4.1.5.1-var-lock.patch Patch9000: shadow-4.1.5.1-var-lock.patch
Patch9001: shadow-utils-fix-lock-file-residue.patch Patch9001: shadow-utils-fix-lock-file-residue.patch
Patch9002: shadow-utils-fix-invalid-path.patch Patch9002: shadow-utils-fix-invalid-path.patch
@ -164,6 +165,9 @@ done
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Thu Feb 6 2020 openEuler Buildteam <buildteam@openEuler.org> - 2:4.7-7
- User name can start with an upper case letter
* Sat Jan 18 2020 openEuler Buildteam <buildteam@openEuler.org> - 2:4.7-6 * Sat Jan 18 2020 openEuler Buildteam <buildteam@openEuler.org> - 2:4.7-6
- Delete ALWAYS_SET_PATH, which has been set by security-tool - Delete ALWAYS_SET_PATH, which has been set by security-tool