From: Mike Frysinger Date: Mon, 10 Jan 2005 06:41:40 +0000 (+0000) Subject: update manpages to include restrictions on valid names #44039 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5821fd8e350d2121e7ba7e253a4197acc439b19;p=gentoo.git update manpages to include restrictions on valid names #44039 --- diff --git a/sys-apps/shadow/Manifest b/sys-apps/shadow/Manifest index 9caf05956b80..7ccee1a318cd 100644 --- a/sys-apps/shadow/Manifest +++ b/sys-apps/shadow/Manifest @@ -29,8 +29,8 @@ MD5 d8b8542a7bc013011a293732ca504a50 files/digest-shadow-4.0.5-r3 66 MD5 c5e9081ed43837797e2f1617b7ce1c24 files/shadow-4.0.5-fix-adding-of-pam_env-set-env-vars.patch 285 MD5 fda41657b856ffaeec5a2734b312409b files/shadow-4.0.5-fix-mail-configure.patch 5452 MD5 d15398f7d8c06b906abdf73ae3a55f54 files/shadow-4.0.6-manpages.patch 564 -MD5 722c164266b87cc374eae4ce1de7632b files/shadow-4.0.6-dots-in-usernames.patch 882 -MD5 fcbc820ddc961b2b153ccc5a7a62935b files/shadow-4.0.6-long-groupnames.patch 659 +MD5 1df33165731b93f2292d5fb4c5a36d1e files/shadow-4.0.6-dots-in-usernames.patch 1993 +MD5 8bf11ce0e8ee683fe290462473871dab files/shadow-4.0.6-long-groupnames.patch 1625 MD5 6e0bc0211949c624da0ea08d994a7038 files/default/useradd 96 MD5 51b0337bd261f6ed5e53af5dc196431a files/pam.d/system-auth 499 MD5 a5311bbc9c1fc378a6b0bfb3ca1b2394 files/pam.d/login 431 @@ -42,7 +42,7 @@ MD5 624bacd4dd8e9855404cd262dd6f8f62 files/pam.d/system-auth-1.1 671 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.9.14 (GNU/Linux) -iD8DBQFB4iI3roRuSHgZdywRAkMKAJ9D4VG7wuORt92xJ+IO8mQL21TVkwCeKWNO -aZpz+QS/fPxdTbw5QZS1I+k= -=EFcc +iD8DBQFB4iO6roRuSHgZdywRAhp3AJ9U7fGyxZqGQpTI1N+V9qH5gXEnsgCdFkAw +sIiJSvusdnbAIl5Bg2Hb3oc= +=7TdX -----END PGP SIGNATURE----- diff --git a/sys-apps/shadow/files/shadow-4.0.6-dots-in-usernames.patch b/sys-apps/shadow/files/shadow-4.0.6-dots-in-usernames.patch index c02fd8a656f3..48e27174b81e 100644 --- a/sys-apps/shadow/files/shadow-4.0.6-dots-in-usernames.patch +++ b/sys-apps/shadow/files/shadow-4.0.6-dots-in-usernames.patch @@ -26,3 +26,34 @@ diff -u -r1.8 chkname.c (*name == '$' && *(name + 1) == '\0'))) return 0; } +Index: man/useradd.8 +=================================================================== +RCS file: /cvsroot/shadow/man/useradd.8,v +retrieving revision 1.23 +diff -u -r1.23 useradd.8 +--- man/useradd.8 11 Dec 2004 20:05:01 -0000 1.23 ++++ man/useradd.8 10 Jan 2005 06:40:15 -0000 +@@ -128,6 +128,23 @@ + .PP + If no options are specified, \fBuseradd\fR displays the current default + values. ++.SH RESTRICTS ++Currently, the shadow suite enforces the following restrictions on ++user names: ++ ++.nf ++\- must begin with a lower case letter or underscore ++\- can only contain lower case letters, underscores, and dashes ++\- may end with a dollar sign ++\- regex for these requirements: [a\-z_][a\-z0-9_\-$]* ++.fi ++ ++The length of usernames is restricted by glibc (via the UT_NAMESIZE define ++in the utmp header file). This may range from 8 characters on older ++systems to 32 characters on newer systems. ++ ++Note Gentoo adds a patch which allows people to create usernames with a ++dot in them. + .SH NOTES + The system administrator is responsible for placing the default user files + in the \fI/etc/skel/\fR directory. diff --git a/sys-apps/shadow/files/shadow-4.0.6-long-groupnames.patch b/sys-apps/shadow/files/shadow-4.0.6-long-groupnames.patch index 4ca93018a37d..411dc5d40b68 100644 --- a/sys-apps/shadow/files/shadow-4.0.6-long-groupnames.patch +++ b/sys-apps/shadow/files/shadow-4.0.6-long-groupnames.patch @@ -21,3 +21,29 @@ diff -u -r1.8 chkname.c return good_name (name); } +Index: man/groupadd.8 +=================================================================== +RCS file: /cvsroot/shadow/man/groupadd.8,v +retrieving revision 1.21 +diff -u -r1.21 groupadd.8 +--- man/groupadd.8 4 Nov 2004 03:06:31 -0000 1.21 ++++ man/groupadd.8 10 Jan 2005 06:36:51 -0000 +@@ -46,6 +46,18 @@ + \fB-o\fR 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 + group. Values between 0 and 999 are typically reserved for system accounts. ++.SH RESTRICTIONS ++Currently, the shadow suite enforces the following restrictions on group ++names: ++ ++.nf ++\- must begin with a lower case letter or underscore ++\- can only contain lower case letters, underscores, and dashes ++\- regex for these requirements: [a\-z_][a\-z0\-9_\-]* ++.fi ++ ++Normally shadow enforces a 16 character limit, but Gentoo adds patches to ++remove it. + .SH FILES + \fI/etc/group\fR \- group account information + .br