newgidmap (1)


NAME

newgidmap - set the gid mapping of a user namespace

SYNOPSIS

newgidmap pid gid lowergid count [pid gid lowergid count [ ... ]]

DESCRIPTION

The newgidmap sets /proc/[pid]/gid_map based on it's command line arguments and the gids allowed in /etc/subgid.

OPTIONS

There currently are no options to the newgidmap command.

NOTE

The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser, and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value.

FILES

/etc/subgid

List of users subordinate user IDs.

/proc/[pid]/gid_map

Mapping of gids from one between user namespaces.

SEE ALSO

login.defs(5), useradd(8), usermod(8), newusers(8), userdel(8), subgid(5).