]> git.ipfire.org Git - thirdparty/util-linux.git/commit
unshare: allow to set user ID and group ID
authorLaurent Vivier <laurent@vivier.eu>
Fri, 5 Oct 2018 11:09:30 +0000 (13:09 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Nov 2018 10:52:15 +0000 (11:52 +0100)
commitf0af42b51761428bdd821b31381fbfa1346f6782
treed470ecd3f56b55267523151531f95fffecf04659
parentbf8834d4f43e39c4212e1974cee4a76c1a8ba545
unshare: allow to set user ID and group ID

This patch introduces two new parameters to set the
user ID and the group ID of the program to be executed.
Setting group ID also drops supplementary groups.

The option names used are the same as for nsenter,
-S, --setuid and -G, --setgid.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
bash-completion/unshare
sys-utils/unshare.1
sys-utils/unshare.c