cdist-type__user_groups(7)

cdist-type__user_groups7

Manage user groups

Overview

Adds or removes a user from one or more groups.

Required parameters

group

the group to which this user should be added or removed. Can be specified multiple times.

Optional parameters

user

the name of the user. Defaults to object_id

state

absent or present. Defaults to present.

Examples

__user_groups nginx --group webuser1 --group webuser2
# remove user nginx from groups webuser2
__user_groups nginx-webuser2 --user nginx \
   --group webuser2 --state absent

Copying

Copyright (C) 2012 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Authors

Steven Armstrong <[email protected]>

From cdist 7.0.0-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.