Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114833 - localmount uses /etc/group for groups
Summary: localmount uses /etc/group for groups
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-07 23:31 UTC by Justin Sanchez
Modified: 2005-12-08 16:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Sanchez 2005-12-07 23:31:00 UTC
Sort of an obscure bug, but /etc/group isn't always where groups come from (I
use LDAP for example) and may be empty or nonexistant in a valid setup. The
command getent group should probably be used instead, as it will properly
consult nsswitch.conf and go to the right place to find groups.

Reproducible: Always
Steps to Reproduce:
1. Set up LDAP for name service
2. Tell nsswitch to use ldap for groups
3. rm /etc/group
4. reboot, causing localmount to be run

Actual Results:  
awk could not open file '/etc/group' for reading

Expected Results:  
Used getent to find out what the groups really were
Comment 1 SpanKY gentoo-dev 2005-12-08 16:04:08 UTC
fixed in svn, thanks