summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-01-10 06:41:40 +0000
committerMike Frysinger <vapier@gentoo.org>2005-01-10 06:41:40 +0000
commitf7cac5a0b4d93ee042447d158d7a40f293a7a68d (patch)
tree941353941452002137420b86c2c246fdd217f163 /sys-apps/shadow
parentAdd patches to enable long group names #3485 and usernames with a . in them #... (diff)
downloadgentoo-2-f7cac5a0b4d93ee042447d158d7a40f293a7a68d.tar.gz
gentoo-2-f7cac5a0b4d93ee042447d158d7a40f293a7a68d.tar.bz2
gentoo-2-f7cac5a0b4d93ee042447d158d7a40f293a7a68d.zip
update manpages to include restrictions on valid names #44039
Diffstat (limited to 'sys-apps/shadow')
-rw-r--r--sys-apps/shadow/files/shadow-4.0.6-dots-in-usernames.patch31
-rw-r--r--sys-apps/shadow/files/shadow-4.0.6-long-groupnames.patch26
2 files changed, 57 insertions, 0 deletions
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