[Pkg-shadow-commits] r739 - trunk/debian/patches
Nicolas FRANCOIS
nekral-guest at costa.debian.org
Tue Dec 20 20:49:23 UTC 2005
Author: nekral-guest
Date: 2005-12-20 20:49:22 +0000 (Tue, 20 Dec 2005)
New Revision: 739
Modified:
trunk/debian/patches/406_good_name.dpatch
Log:
Document that usernames are not so strict in Debian.
Modified: trunk/debian/patches/406_good_name.dpatch
===================================================================
--- trunk/debian/patches/406_good_name.dpatch 2005-12-19 22:50:11 UTC (rev 738)
+++ trunk/debian/patches/406_good_name.dpatch 2005-12-20 20:49:22 UTC (rev 739)
@@ -34,10 +34,10 @@
exit 0
@DPATCH@
-Index: shadow-4.0.13/libmisc/chkname.c
+Index: shadow-4.0.14/libmisc/chkname.c
===================================================================
---- shadow-4.0.13.orig/libmisc/chkname.c 2005-10-04 08:06:31.017236469 +0200
-+++ shadow-4.0.13/libmisc/chkname.c 2005-10-04 08:07:32.351739123 +0200
+--- shadow-4.0.14.orig/libmisc/chkname.c 2005-08-31 19:24:57.000000000 +0200
++++ shadow-4.0.14/libmisc/chkname.c 2005-12-20 21:33:09.000000000 +0100
@@ -17,6 +17,7 @@
#endif
static int good_name (const char *name)
@@ -63,3 +63,24 @@
return 1;
}
+Index: shadow-4.0.14/man/useradd.8.xml
+===================================================================
+--- shadow-4.0.14.orig/man/useradd.8.xml 2005-12-20 21:33:08.000000000 +0100
++++ shadow-4.0.14/man/useradd.8.xml 2005-12-20 21:43:09.000000000 +0100
+@@ -352,9 +352,13 @@
+ </para>
+
+ <para>
+- Usernames must begin with a lower case letter or an underscore, and
+- only lower case letters, underscores, dashes, and dollar signs may
+- follow. In regular expression terms: [a-z_][a-z0-9_-]*[$]
++ On Debian, the constraints on the username are lowered:
++ Usernames must neither start by a dash ('-') nor contain a colon (':') or
++ an end of line ('\n').
++ However, it is usually recommended to only use usernames that begin with
++ a lower case letter or an underscore, and are only followed by lower
++ case letters, underscores, dashes, and dollar signs. In regular
++ expression terms: [a-z_][a-z0-9_-]*[$]
+ </para>
+ </refsect1>
+
More information about the Pkg-shadow-commits
mailing list