From f0af42b51761428bdd821b31381fbfa1346f6782 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 5 Oct 2018 13:09:30 +0200 Subject: 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 --- bash-completion/unshare | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bash-completion/unshare') diff --git a/bash-completion/unshare b/bash-completion/unshare index 64aea6784..10afffe19 100644 --- a/bash-completion/unshare +++ b/bash-completion/unshare @@ -35,7 +35,9 @@ _unshare_module() --help --version --root - --wd" + --wd + --setuid + --setgid" COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; -- cgit v1.2.3-55-g7522