Debian Bug report logs - #643561
adduser with personal groups produces non-matching gids

version graph

Package: adduser; Maintainer for adduser is Debian Adduser Developers <adduser@packages.debian.org>; Source for adduser is src:adduser (PTS, buildd, popcon).

Reported by: Ian Jackson <ijackson@chiark.greenend.org.uk>

Date: Tue, 27 Sep 2011 14:30:08 UTC

Severity: minor

Merged with 583976

Found in version adduser/3.112+nmu2

Reply or subscribe to this bug.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#643561; Package adduser. (Tue, 27 Sep 2011 14:30:11 GMT) (full text, mbox, link).


Acknowledgement sent to Ian Jackson <ijackson@chiark.greenend.org.uk>:
New Bug report received and forwarded. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>. (Tue, 27 Sep 2011 14:30:11 GMT) (full text, mbox, link).


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

From: Ian Jackson <ijackson@chiark.greenend.org.uk>
To: submit@bugs.debian.org
Subject: adduser with personal groups produces non-matching gids
Date: Tue, 27 Sep 2011 15:27:50 +0100
Package: adduser
Version: 3.112+nmu2

I did this:
 # adduser keir
  [ answer the prompts ]
 #

Then:
 # id keir
 uid=1011(keir) gid=1020(keir) groups=1020(keir)

But this doesn't work because pam_mask requires the ids to be
identical.  And I agree with pam, really.

adduser should pick the first value which is available as both a uid
and a gid.

Ian.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#643561; Package adduser. (Tue, 27 Sep 2011 14:51:09 GMT) (full text, mbox, link).


Acknowledgement sent to Ian Jackson <ijackson@chiark.greenend.org.uk>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>. (Tue, 27 Sep 2011 14:51:09 GMT) (full text, mbox, link).


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

From: Ian Jackson <ijackson@chiark.greenend.org.uk>
To: 643561@bugs.debian.org
Subject: Re: adduser with personal groups produces non-matching gids [and 1 more messages]
Date: Tue, 27 Sep 2011 15:48:18 +0100
severity 643561 minor
thanks

I wrote:
> Then:
>  # id keir
>  uid=1011(keir) gid=1020(keir) groups=1020(keir)
> 
> But this doesn't work because pam_mask requires the ids to be
> identical.  And I agree with pam, really.

libpam-modules 1.1.1-6.1 says:

 | If the user is not root, and the user ID is equal to the group ID,
 | and the username is the same as primary group name, the umask group
 | bits are set to be the same as owner bits (examples: 022 -> 002,
 | 077 -> 007).

But libpam-modules 1.1.3-2 says:

 | If the user is not root and the username is the same as primary
 | group name, the umask group bits are set to be the same as owner
 | bits

So matching ids is no longer needed in recent pam for correct
functioning of the pam_umask module.  However, I still think the lack
of matching ids is at the very least ugly and confusing.  It would be
nice if adduser would try to make the ids match.

I'm downgrading my bug report.

Ian.




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>:
Bug#643561; Package adduser. (Wed, 23 Nov 2011 10:16:37 GMT) (full text, mbox, link).


Acknowledgement sent to Marc Haber <mh+debian-packages@zugschlus.de>:
Extra info received and forwarded to list. Copy sent to Debian Adduser Developers <adduser-devel@lists.alioth.debian.org>. (Wed, 23 Nov 2011 10:16:43 GMT) (full text, mbox, link).


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

From: Marc Haber <mh+debian-packages@zugschlus.de>
To: 643561@bugs.debian.org
Subject: Re: Bug#643561: adduser with personal groups produces non-matching gids
Date: Wed, 23 Nov 2011 11:15:59 +0100
severity #583976 minor
merge #643561 #583976
thanks




Severity set to 'minor' from 'normal' Request was from Marc Haber <mh+debian-packages@zugschlus.de> to control@bugs.debian.org. (Tue, 08 Mar 2022 16:21:03 GMT) (full text, mbox, link).


Marked as found in versions adduser/3.112+nmu2; no longer marked as found in versions 3.112+nmu2. Request was from Marc Haber <mh+debian-packages@zugschlus.de> to control@bugs.debian.org. (Tue, 08 Mar 2022 16:57:07 GMT) (full text, mbox, link).


Merged 583976 643561 Request was from Marc Haber <mh+debian-packages@zugschlus.de> to control@bugs.debian.org. (Tue, 08 Mar 2022 16:57:07 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 21:06:16 2023; Machine Name: bembo

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.