1NEWGIDMAP(1) User Commands NEWGIDMAP(1)
2
3
4
6 newgidmap - set the gid mapping of a user namespace
7
9 newgidmap pid gid lowergid count [gid lowergid count [ ... ]]
10
12 The newgidmap sets /proc/[pid]/gid_map based on its command line
13 arguments and the gids allowed in /etc/subgid. Note that the root user
14 is not exempted from the requirement for a valid /etc/subgid entry.
15
16 After the pid argument, newgidmap expects sets of 3 integers:
17
18 gid
19 Beginning of the range of GIDs inside the user namespace.
20
21 lowergid
22 Beginning of the range of GIDs outside the user namespace.
23
24 count
25 Length of the ranges (both inside and outside the user namespace).
26
27 newgidmap verifies that the caller is the owner of the process
28 indicated by pid and that for each of the above sets, each of the GIDs
29 in the range [lowergid, lowergid+count] is allowed to the caller
30 according to /etc/subgid before setting /proc/[pid]/gid_map.
31
32 Note that newgidmap may be used only once for a given process.
33
35 There currently are no options to the newgidmap command.
36
38 /etc/subgid
39 List of user's subordinate group IDs.
40
41 /proc/[pid]/gid_map
42 Mapping of gids from one between user namespaces.
43
45 login.defs(5), newusers(8), subgid(5), useradd(8), userdel(8),
46 usermod(8).
47
48
49
50shadow-utils 4.6 05/11/2019 NEWGIDMAP(1)