SUSE Support

Here When You Need Us

Setting of Samba Primary Group SID after 3.0.23 (SAMBA) (LDAP)

This document (3323463) is provided subject to the disclaimer at the end of this document.


SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Server 9


After an update to Samba > 3.0.23 the setting "Primary Group SID" for any user in Samba seems to be 513, for example

pdbedit -v -u test5

gives for user test5

Primary Group SID: S-1-5-21-2832020676-840558856-594110992-513

and no matter what you try to change this seems to be fixed. This was changed in Samba 3.0.23. The primary group is no longer taken from the SambaPrimaryGroupSID attribute, because of issues with conflicts between the unix primary group and the samba primary group.

But you would like to have a few users be actually members of the Domain Admin Group, but this would require a RID of 512.


To solve this issue an example. You would like to have a user be member of the Domain Admin Group, RID 512. For this you first create a new group in LDAP, lets call it ntadmin. This gets the gidnumber of 512. Then you issue

net groupmap add rid=512 unixgroup=512

and then check

net groupmap list

should give

512 (S-1-5-21-2832020676-840558856-594110992-512) -> ntadmin

then you change the gidnumber of the user (in my test this is test6) to 512 in LDAP and then you check with

pdbedit -v -u test6

and get finally

Primary Group SID: S-1-5-21-2832020676-840558856-594110992-512


This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:3323463
  • Creation Date: 02-Apr-2008
  • Modified Date:16-Mar-2021
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.