Better description for --user / --group
authorRobert Swiecki <swiecki@google.com>
Mon, 29 Feb 2016 14:47:33 +0000 (15:47 +0100)
committerRobert Swiecki <swiecki@google.com>
Mon, 29 Feb 2016 14:47:33 +0000 (15:47 +0100)
cmdline.c

index 1b718b58d2f29abc3979963605c80462ea139780..727dd75a0a8dc2af6ffc9a52efb4680297b5c53c 100644 (file)
--- a/cmdline.c
+++ b/cmdline.c
@@ -310,8 +310,8 @@ bool cmdlineParse(int argc, char *argv[], struct nsjconf_t * nsjconf)
                {{"cmd", no_argument, NULL, 0x500}, "Equivalent of -Mo (MODE_STANDALONE_ONCE), run command on a local console, once"},
                {{"chroot", required_argument, NULL, 'c'}, "Directory containing / of the jail (default: \"/\")"},
                {{"rw", no_argument, NULL, 0x601}, "Mount / as RW (default: RO)"},
-               {{"user", required_argument, NULL, 'u'}, "Username/uid of processess inside the jail (default: 'nobody')"},
-               {{"group", required_argument, NULL, 'g'}, "Groupname/gid of processess inside the jail (default: 'nogroup')"},
+               {{"user", required_argument, NULL, 'u'}, "Username/uid of processess inside the jail (default: your current uid). You can also use inside_ns_uid:outside_ns_uid convention here"},
+               {{"group", required_argument, NULL, 'g'}, "Groupname/gid of processess inside the jail (default: your current gid). You can also use inside_ns_gid:global_ns_gid convention here"},
                {{"hostname", required_argument, NULL, 'H'}, "UTS name (hostname) of the jail (default: 'NSJAIL')"},
                {{"cwd", required_argument, NULL, 'D'}, "Directory in the namespace the process will run (default: '/')"},
                {{"port", required_argument, NULL, 'p'}, "TCP port to bind to (only in [MODE_LISTEN_TCP]) (default: 31337)"},