If a user needs both local group and remote group, nsswitch group field could be configured as below
if a user only need sssd group, it could be configured like this
Based on man page:
The first column is the database name. The remaining columns
specify:
Simply to say, name services will follow the order to query.
above configuration means asking /etc/group first for groups, then asking sssd after that.
Based on the man page of STATUS
success:
No error occurred and the requested entry is returned.
The default action for this condition is "return".
group query might be stopped after searching /etc/group.
If this happens, use [SUCCESS=merge]
when you plan to have 2 groups for 1 user.
In my Ubuntu bionic, it works without set [SUCCESS=merge]
.
I guess default option is merge, but not verified.