Bug#386293: passwd: no matching group file entry in /etc/gshadow

2006-10-07 Thread Kurt Roeckx
Hi,

I just ran into this problem too.

I manually added the user and group to /etc/passwd, /etc/group.  I also
needed to edit /etc/shadow because passwd was once installed in the
chroot and enabled it.  You get some strange error messages if
/etc/shadow exists, but the user isn't in it.

Removing the passwd package still keeps it enabled.  Anyway, I didn't
know about gshadow, so I didn't fix that.

I don't have passwd installed in my chroot because it's not essential.
This also means that apt does not prompt about removing it.  It might be
a required package, but nothing says you can't remove those.

I've just tried turning it off, which failed because the group was
missing, so I added it and turned it off, which fixed things for me.
But it's now enabled again, since passwd was installed again, and the
group is added again.


Kurt



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#386293: [Pkg-shadow-devel] Bug#386293: passwd: no matching group file entry in /etc/gshadow

2006-09-07 Thread Christian Perrier
   Unpacking passwd (from .../passwd_1%3a4.0.18.1-2_i386.deb) ...
   Setting up passwd (4.0.18.1-2) ...
   no matching group file entry in /etc/gshadow
   add group 'plugdev' in /etc/gshadow ?grpck: no changes
   Please correct the error and rerun `/sbin/shadowconfig on'
   dpkg: error processing passwd (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 passwd
 E: Sub-process /usr/bin/dpkg returned an error code (1)


When did this happen? 

shadowconfig is supposed to be run on *new installs* onlyso that
would mean that you're installing passwd:

1) during a new Debian install
2) on a system that had no passwd package before


1) we never got this in D-I reports and anyway havong an inconsistent
group/gshadow coupld would be surprising

2) passwd is a required package so removing it from a Debian system
requires specific admin actionwhich is not supported (aka you
deserve what happens

I may miss a 3) case, but please explain and give more context.






signature.asc
Description: Digital signature


Bug#386293: passwd: no matching group file entry in /etc/gshadow

2006-09-06 Thread Mathieu Malaterre
Package: passwd
Version: 1:4.0.18.1-2
Severity: important


I cannot install passwd on my debian machine:

$ sudo apt-get install -t unstable passwd
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libselinux1
  The following NEW packages will be installed
passwd
The following packages will be upgraded:
  libselinux1
  1 upgraded, 1 newly installed, 0 to remove and 57 not upgraded.
  Need to get 841kB of archives.
  After unpacking 2171kB of additional disk space will be used.
  Do you want to continue [Y/n]?
  Get: 1 http://ftp.debian.org unstable/main libselinux1 1.30.26-2
  [57.7kB]
  Get: 2 http://ftp.debian.org unstable/main passwd 1:4.0.18.1-2
  [784kB]
  Fetched 841kB in 1s (464kB/s)
  Preconfiguring packages ...
  (Reading database ... 17161 files and directories currently
  installed.)
Preparing to replace libselinux1 1.30-1 (using
.../libselinux1_1.30.26-2_i386.deb) ...
Unpacking replacement libselinux1 ...
Setting up libselinux1 (1.30.26-2) ...

Selecting previously deselected package passwd.
(Reading database ... 17161 files and directories currently
installed.)
  Unpacking passwd (from .../passwd_1%3a4.0.18.1-2_i386.deb) ...
  Setting up passwd (4.0.18.1-2) ...
  no matching group file entry in /etc/gshadow
  add group 'plugdev' in /etc/gshadow ?grpck: no changes
  Please correct the error and rerun `/sbin/shadowconfig on'
  dpkg: error processing passwd (--configure):
   subprocess post-installation script returned error exit status 1
   Errors were encountered while processing:
passwd
E: Sub-process /usr/bin/dpkg returned an error code (1)


Thanks

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (989, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages passwd depends on:
ii  debianutils 2.17 Miscellaneous utilities specific t
ii  libc6   2.3.6.ds1-4  GNU C Library: Shared libraries
ii  libpam-modules  0.79-3.1 Pluggable Authentication Modules f
ii  libpam0g0.79-3.1 Pluggable Authentication Modules l
ii  libselinux1 1.30.26-2SELinux shared libraries
ii  login   1:4.0.18.1-1 system login tools

passwd recommends no packages.

-- debconf information:
  passwd/password-mismatch:
* passwd/username: mathieu
  passwd/password-empty:
  passwd/md5: false
  passwd/user-uid:
  passwd/shadow: true
  passwd/username-bad:
* passwd/user-fullname: Mathieu Malaterre
  passwd/make-user: true
  passwd/title:


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]