1GROUPMEMS(8) System Management Commands GROUPMEMS(8)
2
3
4
6 groupmems - administer members of a user's primary group
7
9 groupmems -a user_name | -d user_name | [-g group_name] | -l | -p
10
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
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. Only absolute paths are
56 supported.
57
59 In this operating system the groupmems executable is not setuid and
60 regular users cannot use it to manipulate the membership of their own
61 group.
62
64 The following configuration variables in /etc/login.defs change the
65 behavior of this tool:
66
67 MAX_MEMBERS_PER_GROUP (number)
68 Maximum members per group entry. When the maximum is reached, a new
69 group entry (line) is started in /etc/group (with the same name,
70 same password, and same GID).
71
72 The default value is 0, meaning that there are no limits in the
73 number of members in a group.
74
75 This feature (split group) permits to limit the length of lines in
76 the group file. This is useful to make sure that lines for NIS
77 groups are not larger than 1024 characters.
78
79 If you need to enforce such limit, you can use 25.
80
81 Note: split groups may not be supported by all tools (even in the
82 Shadow toolsuite). You should not use this variable unless you
83 really need it.
84
86 /etc/group
87 Group account information.
88
89 /etc/gshadow
90 secure group account information
91
93 chfn(1), chsh(1), passwd(1), groupadd(8), groupdel(8), useradd(8),
94 userdel(8), usermod(8).
95
96
97
98shadow-utils 4.13 03/06/2023 GROUPMEMS(8)