Bug 3165 - primary group does not show users with "getent group"
Summary: primary group does not show users with "getent group"
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: winbind (show other bugs)
Version: 3.0.20
Hardware: All Solaris
: P3 major
Target Milestone: none
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-13 03:06 UTC by Giuseppe Paterno'
Modified: 2005-10-14 02:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Giuseppe Paterno' 2005-10-13 03:06:43 UTC
Hi!

I got samba 3.0.20 under Solaris 9 (sept. patches, kernel patch 118558-11) as
a member server of ADS win 2000 SP4 and SFU (winbind with idmap_ad).

Say we got the user "fbruni", when I do "getent group|grep -i fbruni" it
shows up all the groups except the primary it belongs.

The output is:
test_sun:x:10029:fbruni

When we do a "getent passwd |grep -i fbruni", the output reports the correct
primary group:

fbruni:x:10000:10001:francesco fb. bruni:/home/fbruni:/bin/sh

GID 10001 is the "Domain Users" group.

The output of the command "wbinfo -r fbruni" shows the correct sequence of groups:

fbruni
10001
10023
10029

but "net -P ads user fbruni" does not include the primary.

FYI samba has been compiled as follows:

$ ./configure --prefix=/usr/local/samba-3.0.20
--exec-prefix=/usr/local/samba-3.0.20 --with-ads --with-acl-support --with-ldap
--with-krb5=/usr/local/samba-3.0.20 --with-winbind --with-sys-quotas
--with-libsmbclient --with-shared-modules=idmap_ad

Thank yoU!
Comment 1 Volker Lendecke 2005-10-14 02:43:19 UTC
Sorry, but this is exactly the way /etc/passwd and /etc/group are designed. In
/etc/group you never find the user's primary group.

Volker