1NEWUIDMAP(1)                     User Commands                    NEWUIDMAP(1)
2
3
4

NAME

6       newuidmap - set the uid mapping of a user namespace
7

SYNOPSIS

9       newuidmap pid uid loweruid count [uid loweruid count [ ... ]]
10

DESCRIPTION

12       The newuidmap sets /proc/[pid]/uid_map based on its command line
13       arguments and the uids allowed. Subuid delegation can either be managed
14       via /etc/subuid or through the configured NSS subid module. These
15       options are mutually exclusive.
16
17       Note that the root user is not exempted from the requirement for a
18       valid /etc/subuid entry.
19
20       After the pid argument, newuidmap expects sets of 3 integers:
21
22       uid
23           Beginning of the range of UIDs inside the user namespace.
24
25       loweruid
26           Beginning of the range of UIDs outside the user namespace.
27
28       count
29           Length of the ranges (both inside and outside the user namespace).
30
31       newuidmap verifies that the caller is the owner of the process
32       indicated by pid and that for each of the above sets, each of the UIDs
33       in the range [loweruid, loweruid+count) is allowed to the caller
34       according to /etc/subuid before setting /proc/[pid]/uid_map.
35
36       Note that newuidmap may be used only once for a given process.
37

OPTIONS

39       There currently are no options to the newuidmap command.
40

FILES

42       /etc/subuid
43           List of user's subordinate user IDs.
44
45       /proc/[pid]/uid_map
46           Mapping of uids from one between user namespaces.
47

SEE ALSO

49       login.defs(5), newusers(8), subuid(5), useradd(8), usermod(8),
50       userdel(8).
51
52
53
54shadow-utils 4.9                  11/19/2021                      NEWUIDMAP(1)
Impressum