Overriding Debian default groups from LDAP
Posted
by
Ex-Parrot
on Server Fault
See other posts from Server Fault
or by Ex-Parrot
Published on 2012-10-17T02:18:47Z
Indexed on
2012/10/17
5:08 UTC
Read the original article
Hit count: 507
This is a thing that has always bothered me: how am I best to handle Debian standard groups for LDAP users?
Debian has a number of groups defined by default, e.g. plugdev, audio, cdrom and so on. These control access in standard Debian installs.
When I want a user from LDAP to be a member of the `audio' group on all machines they log in to, I've tried a few different things:
- Adding them to the local group on the machine (this works but is hard to maintain)
- Creating a group in LDAP with the same name and a different GID then adding the user to that group (breaks reverse / forward GID mapping, doesn't seem to work)
- Creating a group in LDAP with the same name and same GID and adding the user to that group (doesn't seem to work at all, things don't see the LDAP group members)
- Creating a group in LDAP with the same name and same GID then removing the local group (this works but upsets Debian's maintenance scripts during upgrades that check for local system sanity)
What's the best practice for this scenario?
© Server Fault or respective owner