salt icon indicating copy to clipboard operation
salt copied to clipboard

Manipulating Linux /etc/group group members.

Open mlister2006 opened this issue 12 years ago • 4 comments

Proposing a feature to add a capability of manipulating local Linux group members directly. This is also useful when a member of a group is managed elsewhere (e.g. users managed via LDAP, NIS to be added in a local /etc/group file). Linux command 'gpasswd' can be used to manipulate group members.

Example: lgroup1: luser1, luser2, ruser3

local group 'lgroup1' having a member users 'luser1' and 'luser2' those are defined in local /etc/passwd file and user 'ruser3' coming from LDAP.

I will submit a patch to modules.groupadd and states.group for a review. Currently tested for CentOS(RHEL) based distributions.

mlister2006 avatar Mar 10 '14 21:03 mlister2006

It seems odd to me that we wouldn't have had this before now.

techhat avatar Mar 10 '14 21:03 techhat

Pull request #11108 submitted for review.

mlister2006 avatar Mar 10 '14 22:03 mlister2006

Bumping this issue

jpza avatar Jun 05 '14 14:06 jpza

It appears this was implemented in #11108.

basepi avatar Jun 06 '14 17:06 basepi