From mh+pkg-shadow-devel at zugschlus.de Wed Jul 6 11:22:33 2022 From: mh+pkg-shadow-devel at zugschlus.de (Marc Haber) Date: Wed, 6 Jul 2022 12:22:33 +0200 Subject: [Pkg-shadow-devel] Documentation question regarding allowed characters in user names Message-ID: Hi, adduser maintainer here. I have a question about useradd which might influence adduser's decision on which characters to allow in the user name of a "dynamically allocated non-system user". Useradd's manual page says: (1) 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_-]*[$]? (2) 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. In adduser, for non-system accounts, we have a configurable regular expression defaulting to ^[a-z][-a-z0-9_]*\$ which can be switched off with a --force-badname configuration option (which we might change). If --force-badname is given, we fall back to the IEEE 1003.1-2001 default of ^[_.A-Za-z0-9][-\@_.A-Za-z0-9]*\$?$ Both regular expressions don't allow non-ASCII characters. Does your documentation language in paragraph (2) mean that in Debian arbitrary user names are allowed with the mentioned restrictions? Does that mean punctuation characters and accented characters are allowed? What is the encoding? ISO-8859-1? UTF-8? UTF-8 including _all_ possible characters? It seems to be utf-8, and even emojis seem to work, but can that be relied on? What is Debian's stance on IEEE 1003.1-2001 which specifies ^[_.A-Za-z0-9][-\@_.A-Za-z0-9]*\$?$ ? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 From mh+debian-packages at zugschlus.de Wed Jul 6 15:19:40 2022 From: mh+debian-packages at zugschlus.de (Marc Haber) Date: Wed, 6 Jul 2022 16:19:40 +0200 Subject: [Pkg-shadow-devel] Bug#110516: adduser: bad interaction with NIS In-Reply-To: <1080155838.6941.35.camel@irancy.lis.inpg.fr> References: <20010829145329.A779@newton.bauerschmidt.eu.org> <20040324080321.GB15099@torres.ka0.zugschlus.de> <1080155838.6941.35.camel@irancy.lis.inpg.fr> Message-ID: X-Debbugs-Cc: pkg-shadow-devel at lists.alioth.debian.org Control: reassign -1 passwd thanks Dear passwd Maintainers, I am handing over this 18 year old bug to you since this looks like it's actually an issue in passwd tools. adduser has to my knowledge never interacted with NIS. Chances are that the issue has been fixed in passwd since 2004. But not having clue at all about NIS, I would kindly ask you as the passwd team to verify and, if so, close this bug. Thank you very much. Greetings Marc From owner at bugs.debian.org Wed Jul 6 15:21:10 2022 From: owner at bugs.debian.org (Debian Bug Tracking System) Date: Wed, 06 Jul 2022 14:21:10 +0000 Subject: [Pkg-shadow-devel] Processed: Re: Bug#110516: adduser: bad interaction with NIS References: Message-ID: Processing control commands: > reassign -1 passwd Bug #110516 [passwd] adduser: bad interaction with NIS Ignoring request to reassign bug #110516 to the same package -- 110516: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=110516 Debian Bug Tracking System Contact owner at bugs.debian.org with problems From mh+debian-packages at zugschlus.de Wed Jul 6 15:19:40 2022 From: mh+debian-packages at zugschlus.de (Marc Haber) Date: Wed, 6 Jul 2022 16:19:40 +0200 Subject: [Pkg-shadow-devel] Bug#110516: adduser: bad interaction with NIS In-Reply-To: <1080155838.6941.35.camel@irancy.lis.inpg.fr> References: <20010829145329.A779@newton.bauerschmidt.eu.org> <20040324080321.GB15099@torres.ka0.zugschlus.de> <1080155838.6941.35.camel@irancy.lis.inpg.fr> Message-ID: X-Debbugs-Cc: pkg-shadow-devel at lists.alioth.debian.org Control: reassign -1 passwd thanks Dear passwd Maintainers, I am handing over this 18 year old bug to you since this looks like it's actually an issue in passwd tools. adduser has to my knowledge never interacted with NIS. Chances are that the issue has been fixed in passwd since 2004. But not having clue at all about NIS, I would kindly ask you as the passwd team to verify and, if so, close this bug. Thank you very much. Greetings Marc From owner at bugs.debian.org Wed Jul 6 15:21:08 2022 From: owner at bugs.debian.org (Debian Bug Tracking System) Date: Wed, 06 Jul 2022 14:21:08 +0000 Subject: [Pkg-shadow-devel] Processed: Re: Bug#110516: adduser: bad interaction with NIS References: Message-ID: Processing control commands: > reassign -1 passwd Bug #110516 [adduser] adduser: bad interaction with NIS Bug reassigned from package 'adduser' to 'passwd'. No longer marked as found in versions 3.41. Ignoring request to alter fixed versions of bug #110516 to the same values previously set -- 110516: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=110516 Debian Bug Tracking System Contact owner at bugs.debian.org with problems From owner at bugs.debian.org Wed Jul 6 15:21:12 2022 From: owner at bugs.debian.org (Debian Bug Tracking System) Date: Wed, 06 Jul 2022 14:21:12 +0000 Subject: [Pkg-shadow-devel] Processed: Re: Bug#110516: adduser: bad interaction with NIS References: Message-ID: Processing control commands: > reassign -1 passwd Bug #110516 [passwd] adduser: bad interaction with NIS Ignoring request to reassign bug #110516 to the same package -- 110516: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=110516 Debian Bug Tracking System Contact owner at bugs.debian.org with problems From mh+debian-packages at zugschlus.de Wed Jul 6 15:19:40 2022 From: mh+debian-packages at zugschlus.de (Marc Haber) Date: Wed, 6 Jul 2022 16:19:40 +0200 Subject: [Pkg-shadow-devel] Bug#110516: adduser: bad interaction with NIS In-Reply-To: <1080155838.6941.35.camel@irancy.lis.inpg.fr> References: <20010829145329.A779@newton.bauerschmidt.eu.org> <20040324080321.GB15099@torres.ka0.zugschlus.de> <1080155838.6941.35.camel@irancy.lis.inpg.fr> Message-ID: X-Debbugs-Cc: pkg-shadow-devel at lists.alioth.debian.org Control: reassign -1 passwd thanks Dear passwd Maintainers, I am handing over this 18 year old bug to you since this looks like it's actually an issue in passwd tools. adduser has to my knowledge never interacted with NIS. Chances are that the issue has been fixed in passwd since 2004. But not having clue at all about NIS, I would kindly ask you as the passwd team to verify and, if so, close this bug. Thank you very much. Greetings Marc From owner at bugs.debian.org Fri Jul 22 20:33:04 2022 From: owner at bugs.debian.org (Debian Bug Tracking System) Date: Fri, 22 Jul 2022 19:33:04 +0000 Subject: [Pkg-shadow-devel] Processed: Re: Bug#682156: delgroup I/O requirements are O(n^2) with regards to number of configured users References: Message-ID: Processing control commands: > clone -1 -2 Bug #682156 [adduser] delgroup I/O requirements are O(n^2) with regards to number of configured users Bug 682156 cloned as bug 1015869 > reassign -2 passwd Bug #1015869 [adduser] delgroup I/O requirements are O(n^2) with regards to number of configured users Bug reassigned from package 'adduser' to 'passwd'. No longer marked as found in versions adduser/3.112+nmu2. Ignoring request to alter fixed versions of bug #1015869 to the same values previously set > retitle -2 groupdel quite slow with many users in /etc/passwd Bug #1015869 [passwd] delgroup I/O requirements are O(n^2) with regards to number of configured users Changed Bug title to 'groupdel quite slow with many users in /etc/passwd' from 'delgroup I/O requirements are O(n^2) with regards to number of configured users'. -- 1015869: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015869 682156: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682156 Debian Bug Tracking System Contact owner at bugs.debian.org with problems From owner at bugs.debian.org Fri Jul 22 20:33:07 2022 From: owner at bugs.debian.org (Debian Bug Tracking System) Date: Fri, 22 Jul 2022 19:33:07 +0000 Subject: [Pkg-shadow-devel] Processed: Re: Bug#682156: delgroup I/O requirements are O(n^2) with regards to number of configured users References: Message-ID: Processing control commands: > clone -1 -2 Bug #682156 [adduser] delgroup I/O requirements are O(n^2) with regards to number of configured users Bug 682156 cloned as bug 1015870 > reassign -2 passwd Bug #1015870 [adduser] delgroup I/O requirements are O(n^2) with regards to number of configured users Bug reassigned from package 'adduser' to 'passwd'. No longer marked as found in versions adduser/3.112+nmu2. Ignoring request to alter fixed versions of bug #1015870 to the same values previously set > retitle -2 groupdel quite slow with many users in /etc/passwd Bug #1015870 [passwd] delgroup I/O requirements are O(n^2) with regards to number of configured users Changed Bug title to 'groupdel quite slow with many users in /etc/passwd' from 'delgroup I/O requirements are O(n^2) with regards to number of configured users'. -- 1015870: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015870 682156: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=682156 Debian Bug Tracking System Contact owner at bugs.debian.org with problems From owner at bugs.debian.org Fri Jul 22 20:39:04 2022 From: owner at bugs.debian.org (Debian Bug Tracking System) Date: Fri, 22 Jul 2022 19:39:04 +0000 Subject: [Pkg-shadow-devel] Processed: closing 1015870 References: <1658518439-3319-bts-mh+debian-packages@zugschlus.de> Message-ID: Processing commands for control at bugs.debian.org: > close 1015870 Bug #1015870 [passwd] groupdel quite slow with many users in /etc/passwd Marked Bug as done > thanks Stopping processing here. Please contact me if you need assistance. -- 1015870: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015870 Debian Bug Tracking System Contact owner at bugs.debian.org with problems From owner at bugs.debian.org Wed Jul 27 00:03:07 2022 From: owner at bugs.debian.org (Debian Bug Tracking System) Date: Tue, 26 Jul 2022 23:03:07 +0000 Subject: [Pkg-shadow-devel] Processed: . References: Message-ID: Processing commands for control at bugs.debian.org: > tags 1006848 upstream fixed-upstream Bug #1006848 [src:shadow] shadow: improvements for man 8 lastlog Added tag(s) fixed-upstream and upstream. > thanks Stopping processing here. Please contact me if you need assistance. -- 1006848: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1006848 Debian Bug Tracking System Contact owner at bugs.debian.org with problems