Issue #2667 has been updated by James Turnbull.

Target version changed from Rowlf to Statler


----------------------------------------
Feature #2667: Remove a user from a specific group
http://projects.reductivelabs.com/issues/2667

Author: Jos Backus
Status: Accepted
Priority: Normal
Assigned to: 
Category: group
Target version: Statler
Affected version: 0.24.8
Keywords: 
Branch: 


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:

<pre>
group {
    'dbusers':
        gid    => 881,
        ensure => present;
}

user {
    mule:
        groups     => ['dbusers'],
        membership => minimum,
        require    => Group['dbusers'];
}
</pre>

One solution would be to use the gpasswd command on RedHat-based OSes which 
supports syntax to remove a user from a group:

<pre>
gpasswd -d user group
</pre>




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to