Bug 790554 - secondary group memberships not picked up when using nss db backend
Summary: secondary group memberships not picked up when using nss db backend
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glibc
Version: 16
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jeff Law
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-14 20:20 UTC by Robert Kennedy
Modified: 2016-11-24 15:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-17 05:16:22 UTC
Type: ---


Attachments (Terms of Use)

Description Robert Kennedy 2012-02-14 20:20:39 UTC
Description of problem:

The secondary group memberships are not computed correctly when using the db backend in nss.

Version-Release number of selected component (if applicable):
glibc-2.14.90-24.fc16.4.x86_64

How reproducible:
Always


Steps to Reproduce:
cd /var/db; make
Edit /etc/nsswitch.conf to force group and initgroups to use db backend with no files fallback.
  
Actual results:

# getent group wheel
wheel:x:10:robertk
# groups robertk
robertk : robertk

Expected results:

# getent group wheel
wheel:x:10:robertk
# groups robertk
robertk : robertk wheel

Comment 1 Alexandre Oliva 2012-02-17 02:46:32 UTC
This is caused by a typo in the group.db rule in /var/db/Makefile.  It's fixed in glibc commit 98591e582047b308de2ed0621088edad5d3cdf8a.  The printf format string ":%s $s %s\n" near the end of the rule should have another % instead of the $.

Comment 2 Jeff Law 2012-02-17 05:16:22 UTC
This is fixed in rawhide & f17.  I'm not planning to backport to F16.  I realize it's a small change, but my focus is shifting to issues affecting F17.


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