Debian Bug report logs - #467488
gpasswd does not work without a gshadow file

version graph

Package: passwd; Maintainer for passwd is Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>; Source for passwd is src:shadow (PTS, buildd, popcon).

Reported by: Christian Henz <chrhenz@gmx.de>

Date: Mon, 25 Feb 2008 21:09:01 UTC

Severity: normal

Tags: confirmed, fixed-upstream, upstream

Merged with 467236

Found in version shadow/1:4.1.0-2

Fixed in version shadow/1:4.1.1-1

Done: Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>:
Bug#467488; Package passwd. (full text, mbox, link).


Acknowledgement sent to Christian Henz <chrhenz@gmx.de>:
New Bug report received and forwarded. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Christian Henz <chrhenz@gmx.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: passwd: adduser/deluser does now work without shadow
Date: Mon, 25 Feb 2008 21:58:37 +0100
Package: passwd
Version: 1:4.1.0-2
Severity: normal


I could not add/remove a user to/from a group:

# LANG=C deluser chenz video
Removing user `chenz' from group `video' ...
gpasswd: can't open shadow file
/usr/sbin/deluser: `/usr/bin/gpasswd -M  video' returned error code 1. Exiting

gpasswd quit because it failed to open "/etc/gshadow".

It worked after I turned shadow on ("shadowconfig on").


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages passwd depends on:
ii  debianutils                   2.28.4     Miscellaneous utilities specific t
ii  libc6                         2.7-8      GNU C Library: Shared libraries
ii  libpam-modules                0.99.7.1-5 Pluggable Authentication Modules f
ii  libpam0g                      0.99.7.1-5 Pluggable Authentication Modules l
ii  libselinux1                   2.0.35-1   SELinux shared libraries
ii  login                         1:4.1.0-2  system login tools

passwd recommends no packages.

-- debconf information:
  passwd/password-mismatch:
  passwd/username:
  passwd/password-empty:
  passwd/make-user: true
  passwd/title:
  passwd/user-uid:
  passwd/shadow: true
  passwd/username-bad:
  passwd/user-fullname:




Information forwarded to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>:
Bug#467488; Package passwd. (full text, mbox, link).


Acknowledgement sent to Nicolas François <nicolas.francois@centraliens.net>:
Extra info received and forwarded to list. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #10 received at 467488@bugs.debian.org (full text, mbox, reply):

From: Nicolas François <nicolas.francois@centraliens.net>
To: Christian Henz <chrhenz@gmx.de>, 467488@bugs.debian.org
Subject: Re: [Pkg-shadow-devel] Bug#467488: passwd: adduser/deluser does now work without shadow
Date: Tue, 26 Feb 2008 01:16:30 +0100
tags 467488 confirmed
tags 467488 upstream
retitle 467488 gpasswd does not work without a gshadow file
thanks

On Mon, Feb 25, 2008 at 09:58:37PM +0100, chrhenz@gmx.de wrote:
> 
> I could not add/remove a user to/from a group:
> 
> # LANG=C deluser chenz video
> Removing user `chenz' from group `video' ...
> gpasswd: can't open shadow file
> /usr/sbin/deluser: `/usr/bin/gpasswd -M  video' returned error code 1. Exiting
> 
> gpasswd quit because it failed to open "/etc/gshadow".

Thanks for this bug report.
I could reproduce it and will soon provide a patch.

Best Regards,
-- 
Nekral




Tags added: confirmed Request was from Nicolas François <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Tue, 26 Feb 2008 00:24:03 GMT) (full text, mbox, link).


Tags added: upstream Request was from Nicolas François <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Tue, 26 Feb 2008 00:24:04 GMT) (full text, mbox, link).


Changed Bug title to `gpasswd does not work without a gshadow file' from `passwd: adduser/deluser does now work without shadow'. Request was from Nicolas François <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Tue, 26 Feb 2008 00:24:05 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>:
Bug#467488; Package passwd. (full text, mbox, link).


Acknowledgement sent to Nicolas François <nicolas.francois@centraliens.net>:
Extra info received and forwarded to list. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #21 received at 467488@bugs.debian.org (full text, mbox, reply):

From: Nicolas François <nicolas.francois@centraliens.net>
To: Christian Henz <chrhenz@gmx.de>, 467488@bugs.debian.org
Subject: Re: [Pkg-shadow-devel] Bug#467488: Bug#467488: passwd: adduser/deluser does now work without shadow
Date: Wed, 27 Feb 2008 01:47:40 +0100
tags 467488 fixed-upstream
thanks

On Tue, Feb 26, 2008 at 01:16:30AM +0100, nicolas.francois@centraliens.net wrote:
> 
> On Mon, Feb 25, 2008 at 09:58:37PM +0100, chrhenz@gmx.de wrote:
> > 
> > I could not add/remove a user to/from a group:
> > 
> > # LANG=C deluser chenz video
> > Removing user `chenz' from group `video' ...
> > gpasswd: can't open shadow file
> > /usr/sbin/deluser: `/usr/bin/gpasswd -M  video' returned error code 1. Exiting
> > 
> > gpasswd quit because it failed to open "/etc/gshadow".
> 
> Thanks for this bug report.
> I could reproduce it and will soon provide a patch.

I committed a fix in the shadow repository.

Kind Regards,
-- 
Nekral




Tags added: fixed-upstream Request was from Nicolas François <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Wed, 27 Feb 2008 02:24:03 GMT) (full text, mbox, link).


Forcibly Merged 467236 467488. Request was from Martin Pitt <mpitt@debian.org> to control@bugs.debian.org. (Sun, 16 Mar 2008 12:27:04 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>:
Bug#467488; Package passwd. (full text, mbox, link).


Acknowledgement sent to Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>:
Extra info received and forwarded to list. Copy sent to Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #30 received at 467488@bugs.debian.org (full text, mbox, reply):

From: Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>
To: control@bugs.debian.org
Cc: 461670@bugs.debian.org, 467236@bugs.debian.org, 467488@bugs.debian.org, 470745@bugs.debian.org
Subject: setting package to passwd shadow login, tagging 467236, tagging 467488, tagging 461670 ...
Date: Wed, 19 Mar 2008 23:14:51 +0100
# Automatically generated email from bts, devscripts version 2.10.19
#
# shadow (1:4.1.1~rc1-1) UNRELEASED; urgency=low
#
#  * New upstream release. This closes the following bugs:
#    - Fix errors when gpasswd is called without a gshadow file.
#      Closes: #467236, #467488
#    - Fix newgrp segfault when the primary group is not listed in /etc/groups.
#      Closes: #461670
#    - Fix infinite loop in usermod when two groups have the same name.
#      Closes: #470745
#    - Remove patches applied upstream:
#      + debian/patches/451_login_PATH
#      + debian/patches/462_warn_to_edit_shadow
#      + debian/patches/467_useradd_-r_LSB
#      + debian/patches/466_fflush-prompt
#      + debian/patches/480_getopt_args_reorder
#      + debian/patches/496_login_init_session
#      + debian/patches/408_passwd_check_arguments
#      + debian/patches/412_lastlog_-u_numerical_range
#      + debian/patches/407_adduser_disable_PUG_with-n
#    - Updated patches:
#      + debian/patches/504_undef_USE_PAM.nolibpam
#        $(LIBCRYPT) $(LIBSKEY) $(LIBMD) are no more included in libshadow.la.
#        Avoid link to unneeded libraries (spotted by dpkg-shlibdeps).
#      + debian/patches/501_commonio_group_shadow
#      + debian/patches/429_login_FAILLOG_ENAB
#      + debian/patches/542_useradd-O_option
#      + debian/patches/401_cppw_src.dpatch
#      + debian/patches/428_grpck_add_prune_option
#

package passwd shadow login
tags 467236 + pending
tags 467488 + pending
tags 461670 + pending
tags 470745 + pending





Tags added: pending Request was from Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Thu, 20 Mar 2008 01:09:12 GMT) (full text, mbox, link).


Tags added: pending Request was from Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> to control@bugs.debian.org. (Thu, 20 Mar 2008 01:09:13 GMT) (full text, mbox, link).


Reply sent to Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Christian Henz <chrhenz@gmx.de>:
Bug acknowledged by developer. (full text, mbox, link).


Message #39 received at 467488-close@bugs.debian.org (full text, mbox, reply):

From: Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>
To: 467488-close@bugs.debian.org
Subject: Bug#467488: fixed in shadow 1:4.1.1-1
Date: Thu, 03 Apr 2008 00:17:15 +0000
Source: shadow
Source-Version: 1:4.1.1-1

We believe that the bug you reported is fixed in the latest version of
shadow, which is due to be installed in the Debian FTP archive:

login_4.1.1-1_i386.deb
  to pool/main/s/shadow/login_4.1.1-1_i386.deb
passwd_4.1.1-1_i386.deb
  to pool/main/s/shadow/passwd_4.1.1-1_i386.deb
shadow_4.1.1-1.diff.gz
  to pool/main/s/shadow/shadow_4.1.1-1.diff.gz
shadow_4.1.1-1.dsc
  to pool/main/s/shadow/shadow_4.1.1-1.dsc
shadow_4.1.1.orig.tar.gz
  to pool/main/s/shadow/shadow_4.1.1.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 467488@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net> (supplier of updated shadow package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 03 Apr 2008 01:31:10 +0200
Source: shadow
Binary: passwd login
Architecture: source i386
Version: 1:4.1.1-1
Distribution: unstable
Urgency: low
Maintainer: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
Changed-By: Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>
Description: 
 login      - system login tools
 passwd     - change and administer password and group data
Closes: 445484 461374 461670 467236 467488 470745 471802 471935 472244 472506 472575 472951 473279 473555 473646
Changes: 
 shadow (1:4.1.1-1) unstable; urgency=low
 .
   * New upstream release. This closes the following bugs:
     - Fix errors when gpasswd is called without a gshadow file.
       Closes: #467236, #467488
     - Fix newgrp segfault when the primary group is not listed in /etc/groups.
       Closes: #461670
     - Fix infinite loop in usermod when two groups have the same name.
       Closes: #470745
     - Make SE Linux tests more strict, when the real UID is 0 SE Linux checks
       will be performed. Closes: #472575
     - Option --password added to groupadd / groupmod (like useradd / usermod).
       Closes: #445484
     - Remove patches applied upstream:
       + debian/patches/451_login_PATH
       + debian/patches/462_warn_to_edit_shadow
       + debian/patches/467_useradd_-r_LSB
       + debian/patches/466_fflush-prompt
       + debian/patches/480_getopt_args_reorder
       + debian/patches/496_login_init_session
       + debian/patches/408_passwd_check_arguments
       + debian/patches/412_lastlog_-u_numerical_range
       + debian/patches/407_adduser_disable_PUG_with-n
     - Updated patches:
       + debian/patches/504_undef_USE_PAM.nolibpam
         $(LIBCRYPT) $(LIBSKEY) $(LIBMD) are no more included in libshadow.la.
         Avoid link to unneeded libraries (spotted by dpkg-shlibdeps).
       + debian/patches/501_commonio_group_shadow
       + debian/patches/429_login_FAILLOG_ENAB
       + debian/patches/542_useradd-O_option
       + debian/patches/401_cppw_src.dpatch
       + debian/patches/428_grpck_add_prune_option
     - Updated translations:
       + Basque. Closes: #473555
       + German. Closes: #473646
       + Italian. Closes: #472951
       + Korean. Closes: #471935
       + Portuguese. Closes: #472244
       + Russian. Closes: #472506
       + Slovak. Closes: #471802
       + Turkish. Closes: #473279
   * debian/watch: Add a watch file for shadow.
   * debian/rules, debian/recode_manpages.sh: Do not recode the manpages.
     Keep them in UTF-8.
   * debian/rules, debian/control: login (>= 970502-1) was already provided
     by login in Hamm. libpam-modules (>= 0.72-5) was already provided by
     libpam-modules in Potato. libpam-runtime (>= 0.76-14) was already provided
     by libpam-runtime in Sarge (now oldstable). Simplify the dependencies.
   * debian/control: Move the dependency on libpam-modules from Depends to
     Pre-Depends. The login package is Essential, and without libpam-modules,
     login or su are not functional. Thanks to Steve Langasek for pointing this
     out.
   * debian/control: There's no need for a dependency on login (now that it is
     unversionned; see above) in the passwd package.
   * debian/control: The passwd's Replaces on manpages-de can be versionned
     again. The su(1) manpage was removed from manpages-de.
   * debian/securetty.linux: Added ttyUSB0, ttyUSB1, ttyUSB2, and MPC5200
     serial ports (ttyPSC0, ttyPSC1, ttyPSC2, ttyPSC3, ttyPSC4, ttyPSC5).
     Closes: #461374
   * debian/control: Change XS-X-Vcs-Svn to Vcs-Svn.  Update the link to the
     new repository layout.  Add a Vcs-Browser field.
   * debian/control: Added Homepage field.
   * debian/passwd.postrm: Removed (was empty).
Files: 
 2edb489bd07a9a09e378cc3a53da7315 1160 admin required shadow_4.1.1-1.dsc
 ae893c18fdb0a89bc7991ba1098f1446 2720267 admin required shadow_4.1.1.orig.tar.gz
 f6b6241d60ae93cf59d5c7076c863c75 76018 admin required shadow_4.1.1-1.diff.gz
 d396813553676b7114aef714d961ab2d 851106 admin required passwd_4.1.1-1_i386.deb
 057b56c6f418289d873fc7aceceeb3a5 857970 admin required login_4.1.1-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH9B3ZWgo5mup89a0RAri3AJ4y/H5GADTWIfgFta0julvrwQ4/SgCfc1MI
GBlVDL6jN7+HGYZgygtYLX8=
=fzF5
-----END PGP SIGNATURE-----





Reply sent to Nicolas FRANCOIS (Nekral) <nicolas.francois@centraliens.net>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Martin von Oertzen <maletin@vs138245.vserver.de>:
Bug acknowledged by developer. (full text, mbox, link).


Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Mon, 12 May 2008 09:46:58 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Jul 1 12:16:12 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.