diff options
Diffstat (limited to 'debian/patches/506_relaxed_usernames')
-rw-r--r-- | debian/patches/506_relaxed_usernames | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/debian/patches/506_relaxed_usernames b/debian/patches/506_relaxed_usernames index 06b31ff6..b8b1ce17 100644 --- a/debian/patches/506_relaxed_usernames +++ b/debian/patches/506_relaxed_usernames @@ -23,11 +23,11 @@ Details: +#if 0 /* - * User/group names must match [a-z_][a-z0-9_-]*[$] - */ -@@ -50,6 +51,26 @@ - return false; - } + * User/group names must match gnu e-regex: + * [a-zA-Z0-9_.][a-zA-Z0-9_.-]{0,30}[a-zA-Z0-9_.$-]? +@@ -52,8 +53,28 @@ + *name == '.')) { + return false; } +#endif + /* @@ -50,19 +50,15 @@ Details: + name++; + } while ('\0' != *name); - return true; - } +- numeric = isdigit(*name); ++ int numeric = isdigit(*name); + + while ('\0' != *++name) { + if (!((*name >= 'a' && *name <= 'z') || --- a/man/useradd.8.xml +++ b/man/useradd.8.xml -@@ -698,12 +698,20 @@ - </para> - - <para> -- Usernames must start with a lower case letter or an underscore, -+ It is usually recommended to only use usernames that begin 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_-]*[$]? +@@ -708,6 +708,14 @@ + the <command>ls</command> output. </para> <para> + On Debian, the only constraints are that usernames must neither start @@ -78,15 +74,8 @@ Details: </refsect1> --- a/man/groupadd.8.xml +++ b/man/groupadd.8.xml -@@ -64,12 +64,18 @@ - files as needed. - </para> - <para> -- Groupnames must start with a lower case letter or an underscore, -+ It is usually recommended to only use groupnames that begin 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_-]*[$]? +@@ -72,6 +72,12 @@ + also disallowed. </para> <para> + On Debian, the only constraints are that groupnames must neither start |