Bug 124821 - Group membership in /etc/gshadow is disregarded by access control
Group membership in /etc/gshadow is disregarded by access control
Product: Fedora
Classification: Fedora
Component: setup (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2004-05-30 15:34 EDT by David Tonhofer
Modified: 2014-03-16 22:45 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-09-23 00:31:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Tonhofer 2004-05-30 15:34:54 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510

Description of problem:

I have played around with /etc/group and /etc/gshadow to 
elucidate the behaviour of the same. 

First off, I noticed that group passwords are not handled
properly by 'newgrp', but that is another story ;-)
for which bugs 85280 and 14464 should be consulted.
The links to these:

Here's the 'new' problem : The group membership list in /etc/gshadow
is not operational. Try this:

Create a file that is only accessible by group 'foo'
  ----rw----  1 nobody foo 18 May 30 19:33 /tmp/README
User dtonhofer is in group dtonhofer only
  That user cannot access the file, as expected

Add user dtonhofer to the membership list of group foo in /etc/group
then log in as that user (Access control is not dynamic, you have
to create a new process? Well, that's correct, probably..)
  User can access the file, as expected.

However, add user dtonhofer to the membership list of group foo in
/etc/shadow then log in as that user (I made sure the group password
was empty, too):

  User CANNOT access the file, but should be able to.

Now I know why the membership lists are in /etc/group instead of 
/etc/gshadow, as one would expect them to be. 

Hmmm....gshadow seems to be the unloved relative. Is it actually
ever used in the 'real world'? 

How reproducible:
Comment 1 Bill Nottingham 2004-06-01 01:09:01 EDT
gshadow, afaik, is only ever used for group passwords. I'll have to
check some more.
Comment 2 Bill Nottingham 2004-09-23 00:31:42 EDT

has some information on gshadow. Just putting the user in /etc/group
is what's needed.

Note You need to log in before you can comment on or make changes to this bug.