Bug#401038: useradd: Issue with the position of the -u option
tags 401038 unreproducible thanks Hello, On Thu, Nov 30, 2006 at 02:38:06PM +0100, Laurent Jourdren wrote: There is an issue with the position of uid option -u. When this option is after the group option (-g), useradd fail to create the user. The following command lines show the matter: # /usr/sbin/useradd -d /home/toto -g smbusers -s /bin/false -u 1 toto useradd : argument numérique « 1 » incorrect # /usr/sbin/useradd -d /home/toto -g smbusers -u 1 -s /bin/false toto useradd : argument numérique « 1 » incorrect Whereas when the -u is before the -g option, the user is correctly created. # /usr/sbin/useradd -d /home/toto -u 1 -g smbusers -s /bin/false toto Sorry for not checking earlier. I cannot reproduce the failures. Can you? I checked with the current version of passwd (4.0.18.1-7) and libc6 (2.5-1), and also tried with the ones you reported (1:4.0.18.1-5 and 2.3.6.ds1-7), on i386. Kind Regards, -- Nekral
Bug#401038: [Pkg-shadow-devel] Bug#401038: useradd: Issue with the position of the -u option
user [EMAIL PROTECTED] usertags 401038 toclose usertags 401038 limits_20070422 thanks Sorry for not checking earlier. I cannot reproduce the failures. Can you? I checked with the current version of passwd (4.0.18.1-7) and libc6 (2.5-1), and also tried with the ones you reported (1:4.0.18.1-5 and 2.3.6.ds1-7), on i386. I can't reproduce the failure either. As we don't want to keep unreproducible bugs opened, please tell us ASAP if you can still reproduce the bug. signature.asc Description: Digital signature
Bug#401038: useradd: Issue with the position of the -u option
Package: passwd Version: 1:4.0.18.1-5 Severity: normal There is an issue with the position of uid option -u. When this option is after the group option (-g), useradd fail to create the user. The following command lines show the matter: # /usr/sbin/useradd -d /home/toto -g smbusers -s /bin/false -u 1 toto useradd : argument numérique « 1 » incorrect # /usr/sbin/useradd -d /home/toto -g smbusers -u 1 -s /bin/false toto useradd : argument numérique « 1 » incorrect Whereas when the -u is before the -g option, the user is correctly created. # /usr/sbin/useradd -d /home/toto -u 1 -g smbusers -s /bin/false toto WARNING: This bug cause an error of during user creation using adduser command of the adduser package which call useradd in its process: # adduser --quiet --home /home/toto --shell /bin/false --uid 1555 --gid 1000 --disabled-password --gecos 'titi toto' toto useradd : argument numérique « 1555 » incorrect adduser : « /usr/sbin/useradd -d /home/toto -g smbusers -s /bin/false -u 1555 toto » a renvoyé le code d'erreur 3. Abandon. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18.1-munin Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages passwd depends on: ii debianutils 2.17 Miscellaneous utilities specific t ii libc6 2.3.6.ds1-7 GNU C Library: Shared libraries ii libpam-modules 0.79-4 Pluggable Authentication Modules f ii libpam0g0.79-4 Pluggable Authentication Modules l ii libselinux1 1.32-3 SELinux shared libraries ii login 1:4.0.18.1-5 system login tools passwd recommends no packages. -- debconf information: passwd/password-mismatch: passwd/username: passwd/password-empty: passwd/make-user: true passwd/md5: false passwd/title: passwd/user-uid: passwd/shadow: true passwd/username-bad: passwd/user-fullname: