Feature #2667
Remove a user from a specific group
| Status: | Accepted | Start date: | 09/21/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | group | |||
| Target version: | Telly | |||
| Affected Puppet version: | 0.24.8 | Branch: | ||
| Keywords: | ||||
| Votes: | 1 |
Description
Currently, Puppet, at least on RedHat-based OSes has no means of removing a user from a specific group.
This capability is needed in order to be able to back out a change like the one below. The specified account may or may not be in other groups so one cannot use `membership => inclusive'.
Example:
group {
'dbusers':
gid => 881,
ensure => present;
}
user {
mule:
groups => ['dbusers'],
membership => minimum,
require => Group['dbusers'];
}
One solution would be to use the gpasswd command on RedHat-based OSes which supports syntax to remove a user from a group:
gpasswd -d user group
History
Updated by James Turnbull over 2 years ago
- Category changed from user to group
- Status changed from Unreviewed to Accepted
- Target version set to 2.6.0
Updated by James Turnbull about 2 years ago
- Target version changed from 2.6.0 to 2.7.x
Updated by Nigel Kersten 10 months ago
Jos, would you be satisfied with the solution in #7241 instead?
I think that’s really the only sane path to head down.
Updated by Nigel Kersten 10 months ago
- Target version changed from 2.7.x to Telly