useradd(8): Fix missing paragraph on username length

This commit is contained in:
Chris Hofstaedtler
2024-06-22 18:05:22 +02:00
parent ac353a0d49
commit 771535fa07
4 changed files with 12 additions and 11 deletions
+9 -8
View File
@@ -20,8 +20,8 @@ Gbp-Topic: debian
---
lib/chkname.c | 47 +++++++++++++++--------------------------------
man/groupadd.8.xml | 6 ++++++
man/useradd.8.xml | 7 ++++++-
3 files changed, 27 insertions(+), 33 deletions(-)
man/useradd.8.xml | 8 ++++++++
3 files changed, 29 insertions(+), 32 deletions(-)
diff --git a/lib/chkname.c b/lib/chkname.c
index 995562f..d9678c6 100644
@@ -105,20 +105,21 @@ index 61a548f..d472bd0 100644
Groupnames may only be up to &GROUP_NAME_MAX_LENGTH; characters long.
</para>
diff --git a/man/useradd.8.xml b/man/useradd.8.xml
index 17987a6..4fc95d1 100644
index 17987a6..c98b214 100644
--- a/man/useradd.8.xml
+++ b/man/useradd.8.xml
@@ -733,7 +733,12 @@
the <command>ls</command> output.
</para>
@@ -735,6 +735,14 @@
<para>
- Usernames may only be up to 256 characters long.
Usernames may only be up to 256 characters long.
</para>
+ <para>
+ On Debian, the only constraints are that usernames must neither start
+ with a dash ('-') nor plus ('+') nor tilde ('~') nor contain a
+ colon (':'), a comma (','), or a whitespace (space: ' ',
+ end of line: '\n', tabulation: '\t', etc.). Note that using a slash
+ ('/') may break the default algorithm for the definition of the
+ user's home directory.
</para>
+ </para>
</refsect1>
<refsect1 id='configuration'>
@@ -1,6 +1,6 @@
From: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
Date: Sat, 22 Jun 2024 17:39:41 +0200
Subject: ccpw: add selinux support
Subject: cppw: add selinux support
Status wrt upstream: cppw is not available upstream.
Needs to be reviewed by an SE-Linux aware person.
+1 -1
View File
@@ -1,5 +1,5 @@
cppw-Add-tool.patch
ccpw-add-selinux-support.patch
cppw-add-selinux-support.patch
Let-pam_unix-handle-login-failure-delays.patch
Set-group-and-mode-for-g-shadow-files.patch
Keep-using-Debian-adduser-defaults.patch
@@ -14,7 +14,7 @@ Gbp-Topic: debian
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/man/useradd.8.xml b/man/useradd.8.xml
index 4fc95d1..c513e56 100644
index c98b214..20618bc 100644
--- a/man/useradd.8.xml
+++ b/man/useradd.8.xml
@@ -333,6 +333,11 @@