Debian Bug report logs - #59433
hurd: group permission not honoured

Package: hurd; Maintainer for hurd is GNU Hurd Maintainers <debian-hurd@lists.debian.org>;

Reported by: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>

Date: Thu, 2 Mar 2000 16:18:00 UTC

Severity: normal

Done: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>

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, GNU Hurd Maintainers <bug-hurd@gnu.org>:
Bug#59433; Package hurd. (full text, mbox, link).


Acknowledgement sent to Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>:
New Bug report received and forwarded. Copy sent to GNU Hurd Maintainers <bug-hurd@gnu.org>. (full text, mbox, link).


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

From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
To: submit@bugs.debian.org
Subject: hurd: group permission not honoured
Date: Thu, 02 Mar 2000 17:10:25 +0100
Package: hurd
Version: N/A
Severity: normal

Hi,

As root:
# echo do not see > /tmp/secret
# chgrp marcus /tmp/secret
# chmod go-r /tmp/secret

Now /tmp/secret looks like this:
-rw------- root marcus tmp/secret

Now login as marcus, who belongs to group marcus and nothing else.
$ cat /tmp/secret
do not see

This might also be a glibc bug, I dunno.

Thanks,
Marcus

-- System Information
Debian Release: woody
Kernel Version: Linux ulysses 2.2.13 #1 Sat Nov 20 12:44:19 EST 1999 i586 unknown



Information forwarded to debian-bugs-dist@lists.debian.org, GNU Hurd Maintainers <bug-hurd@gnu.org>:
Bug#59433; Package hurd. (full text, mbox, link).


Acknowledgement sent to tb@MIT.EDU (Thomas Bushnell, BSG):
Extra info received and forwarded to list. Copy sent to GNU Hurd Maintainers <bug-hurd@gnu.org>. (full text, mbox, link).


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

From: tb@MIT.EDU (Thomas Bushnell, BSG)
To: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
Cc: 59433@bugs.debian.org, submit@bugs.debian.org
Subject: Re: Bug#59433: hurd: group permission not honoured
Date: 05 Mar 2000 15:48:55 -0500
Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:

> As root:
> # echo do not see > /tmp/secret
> # chgrp marcus /tmp/secret
> # chmod go-r /tmp/secret
> 
> Now /tmp/secret looks like this:
> -rw------- root marcus tmp/secret
> 
> Now login as marcus, who belongs to group marcus and nothing else.
> $ cat /tmp/secret
> do not see
> 
> This might also be a glibc bug, I dunno.

I suspect this is not a bug at all.

What is the gid marcus and what is the uid marcus?

The Hurd supports a feature known as "groupleaders".  If your uid=gid,
then you count as the owner for any files with that group. 

Thomas


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Hurd Maintainers <bug-hurd@gnu.org>:
Bug#59433; Package hurd. (full text, mbox, link).


Acknowledgement sent to tb@MIT.EDU (Thomas Bushnell, BSG):
Extra info received and forwarded to list. Copy sent to GNU Hurd Maintainers <bug-hurd@gnu.org>. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Hurd Maintainers <bug-hurd@gnu.org>:
Bug#59433; Package hurd. (full text, mbox, link).


Acknowledgement sent to Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>:
Extra info received and forwarded to list. Copy sent to GNU Hurd Maintainers <bug-hurd@gnu.org>. (full text, mbox, link).


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

From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
To: "Thomas Bushnell, BSG" <tb@MIT.EDU>
Cc: 59433@bugs.debian.org
Subject: Re: Bug#59433: hurd: group permission not honoured
Date: Sun, 5 Mar 2000 22:09:06 +0100
On Sun, Mar 05, 2000 at 03:48:55PM -0500, Thomas Bushnell, BSG wrote:
> Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:
> 
> > As root:
> > # echo do not see > /tmp/secret
> > # chgrp marcus /tmp/secret
> > # chmod go-r /tmp/secret
> > 
> > Now /tmp/secret looks like this:
> > -rw------- root marcus tmp/secret
> > 
> > Now login as marcus, who belongs to group marcus and nothing else.
> > $ cat /tmp/secret
> > do not see
> > 
> > This might also be a glibc bug, I dunno.
> 
> I suspect this is not a bug at all.
> 
> What is the gid marcus and what is the uid marcus?

gid=uid=1000
 
> The Hurd supports a feature known as "groupleaders".  If your uid=gid,
> then you count as the owner for any files with that group. 

Oh. That would explain it of course. I will close the report.
(Sounds like an entry for the FAQ).

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
Marcus.Brinkmann@ruhr-uni-bochum.de,     marcus@gnu.org    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       brinkmd@debian.org


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Hurd Maintainers <bug-hurd@gnu.org>:
Bug#59433; Package hurd. (full text, mbox, link).


Acknowledgement sent to Kalle Olavi Niemitalo <tosi@stekt.oulu.fi>:
Extra info received and forwarded to list. Copy sent to GNU Hurd Maintainers <bug-hurd@gnu.org>. (full text, mbox, link).


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

From: Kalle Olavi Niemitalo <tosi@stekt.oulu.fi>
To: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
Cc: 59433@bugs.debian.org
Subject: Re: Bug#59433: hurd: group permission not honoured
Date: 06 Mar 2000 14:21:36 +0200
Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:

> On Sun, Mar 05, 2000 at 03:48:55PM -0500, Thomas Bushnell, BSG wrote:
> > The Hurd supports a feature known as "groupleaders".  If your uid=gid,
> > then you count as the owner for any files with that group. 
> 
> Oh. That would explain it of course. I will close the report.

Perhaps you should instead reassign it to adduser, as that should
be changed to avoid allocating the same id for a user and a group
unless explicitly requested (or perhaps if they have the same
name).


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Hurd Maintainers <bug-hurd@gnu.org>:
Bug#59433; Package hurd. (full text, mbox, link).


Acknowledgement sent to tb@MIT.EDU (Thomas Bushnell, BSG):
Extra info received and forwarded to list. Copy sent to GNU Hurd Maintainers <bug-hurd@gnu.org>. (full text, mbox, link).


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

From: tb@MIT.EDU (Thomas Bushnell, BSG)
To: Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>
Cc: 59433@bugs.debian.org, Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
Subject: Re: Bug#59433: hurd: group permission not honoured
Date: 06 Mar 2000 11:54:11 -0500
Kalle Olavi Niemitalo <tosi@ees2.oulu.fi> writes:

> Perhaps you should instead reassign it to adduser, as that should
> be changed to avoid allocating the same id for a user and a group
> unless explicitly requested (or perhaps if they have the same
> name).

Isn't the normal behavior of Debian adduser to give every user a group
which matches their ID?  That would be exactly in line with the
groupleaders concept; it meshes nicely.



Reply sent to Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>:
Bug acknowledged by developer. (full text, mbox, link).


Message #35 received at 59433-done@bugs.debian.org (full text, mbox, reply):

From: Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
To: 59433-done@bugs.debian.org
Subject: foo
Date: Sat, 1 Apr 2000 16:23:45 +0200
done

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server 
Marcus Brinkmann              GNU    http://www.gnu.org    for public PGP Key 
Marcus.Brinkmann@ruhr-uni-bochum.de,     marcus@gnu.org    PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/       brinkmd@debian.org


Information forwarded to debian-bugs-dist@lists.debian.org, GNU Hurd Maintainers <bug-hurd@gnu.org>:
Bug#59433; Package hurd. (full text, mbox, link).


Acknowledgement sent to Kalle Olavi Niemitalo <tosi@stekt.oulu.fi>:
Extra info received and forwarded to list. Copy sent to GNU Hurd Maintainers <bug-hurd@gnu.org>. (full text, mbox, link).


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

From: Kalle Olavi Niemitalo <tosi@stekt.oulu.fi>
To: 59433@bugs.debian.org
Subject: Re: Bug#59433: hurd: group permission not honoured
Date: 09 Apr 2000 15:47:30 +0300
tb@MIT.EDU (Thomas Bushnell, BSG) writes:

> Isn't the normal behavior of Debian adduser to give every user a group
> which matches their ID?

That is what normally happens, but it isn't enforced in any way.
So if gid 1000 has been allocated earlier and uid 1000 has not, a
new user may get uid 1000 and gid 1001.  I fear this may
unexpectedly turn users to groupleaders in some cases.

If you agree, please reopen the bug and reassign it to adduser or
passwd.


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat May 4 23:07:05 2024; 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.