1GROUPMEMS(8)              System Management Commands              GROUPMEMS(8)
2
3
4

NAME

6       groupmems - administer members of a user's primary group
7

SYNOPSIS

9       groupmems -a user_name | -d user_name | [-g group_name] | -l | -p
10

DESCRIPTION

12       The groupmems command allows a user to administer their own group
13       membership list without the requirement of superuser privileges. The
14       groupmems utility is for systems that configure its users to be in
15       their own name sake primary group (i.e., guest / guest).
16
17       Only the superuser, as administrator, can use groupmems to alter the
18       memberships of other groups.
19

OPTIONS

21       The options which apply to the groupmems command are:
22
23       -a, --add user_name
24           Add a user to the group membership list.
25
26           If the /etc/gshadow file exist, and the group has no entry in the
27           /etc/gshadow file, a new entry will be created.
28
29       -d, --delete user_name
30           Delete a user from the group membership list.
31
32           If the /etc/gshadow file exist, the user will be removed from the
33           list of members and administrators of the group.
34
35           If the /etc/gshadow file exist, and the group has no entry in the
36           /etc/gshadow file, a new entry will be created.
37
38       -g, --group group_name
39           The superuser can specify which group membership list to modify.
40
41       -h, --help
42           Display help message and exit.
43
44       -l, --list
45           List the group membership list.
46
47       -p, --purge
48           Purge all users from the group membership list.
49
50           If the /etc/gshadow file exist, and the group has no entry in the
51           /etc/gshadow file, a new entry will be created.
52
53       -R, --root CHROOT_DIR
54           Apply changes in the CHROOT_DIR directory and use the configuration
55           files from the CHROOT_DIR directory.
56

SETUP

58       In this operating system the groupmems executable is not setuid and
59       regular users cannot use it to manipulate the membership of their own
60       group.
61

CONFIGURATION

63       The following configuration variables in /etc/login.defs change the
64       behavior of this tool:
65
66       MAX_MEMBERS_PER_GROUP (number)
67           Maximum members per group entry. When the maximum is reached, a new
68           group entry (line) is started in /etc/group (with the same name,
69           same password, and same GID).
70
71           The default value is 0, meaning that there are no limits in the
72           number of members in a group.
73
74           This feature (split group) permits to limit the length of lines in
75           the group file. This is useful to make sure that lines for NIS
76           groups are not larger than 1024 characters.
77
78           If you need to enforce such limit, you can use 25.
79
80           Note: split groups may not be supported by all tools (even in the
81           Shadow toolsuite). You should not use this variable unless you
82           really need it.
83

FILES

85       /etc/group
86           Group account information.
87
88       /etc/gshadow
89           secure group account information
90

SEE ALSO

92       chfn(1), chsh(1), passwd(1), groupadd(8), groupdel(8), useradd(8),
93       userdel(8), usermod(8).
94
95
96
97shadow-utils 4.11.1               02/10/2022                      GROUPMEMS(8)
Impressum