Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm setting up ldap authentication with sssd for a linux server. everything works fine. however, the users from the ldap server have a default group User. which is,

uid=10001 (larry), gid= 20001 (User), groups = 20001 (User), 20002 (dev)

I'm wondering is there anyway to override/filter the default User group so it will be something like?

uid=10001 (larry), gid= 10001 (larry), groups = 20002 (dev), which is like default linux user/group,


uid=10001 (larry), gid= 20002 (dev), groups = 20002 (dev)

share|improve this question

The only possibility I know is using nss_override_attribute_value. I don't know if this helps for your specific case. Example:

nss_override_attribute_value gidNumber 20002
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.