From: Stéphane Graber Date: Fri, 28 Aug 2015 15:23:13 +0000 (-0400) Subject: Merge pull request #585 from ptoomey3/lxc-execute-as-user X-Git-Tag: lxc-2.0.0.beta1~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c804bedf8b52a993ccfcd6b21790c5a6b8f6147c;p=thirdparty%2Flxc.git Merge pull request #585 from ptoomey3/lxc-execute-as-user Add support for specified UID/GID for lxc-execute in a private user namespace --- c804bedf8b52a993ccfcd6b21790c5a6b8f6147c diff --cc src/lxc/lxc_execute.c index d2c1248cd,4f42236e3..50d481f0e --- a/src/lxc/lxc_execute.c +++ b/src/lxc/lxc_execute.c @@@ -79,9 -83,11 +83,11 @@@ lxc-execute creates a container with th and execs COMMAND into this container.\n\ \n\ Options :\n\ - -n, --name=NAME NAME for name of the container\n\ + -n, --name=NAME NAME of the container\n\ -f, --rcfile=FILE Load configuration file FILE\n\ - -s, --define KEY=VAL Assign VAL to configuration variable KEY\n", + -s, --define KEY=VAL Assign VAL to configuration variable KEY\n\ + -u, --uid=UID Execute COMMAND with UID inside the container\n\ + -g, --gid=GID Execute COMMAND with GID inside the container\n", .options = my_longopts, .parser = my_parser, .checker = my_checker,