summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2007-11-25 18:26:03 +0100
committerJim Meyering <meyering@redhat.com>2007-11-25 18:26:03 +0100
commit910267665eb6510a605e564eb41414e879166b9f (patch)
tree76b0d039a34c794f263bd25cb142333b633367b5 /src
parent3669d2b820601ff029f94c045168a9fdbd472e57 (diff)
downloadcoreutils-910267665eb6510a605e564eb41414e879166b9f.tar.xz
setuidgid: Update --help output.
* src/setuidgid.c (usage): Describe -g GID[,GID1...] option. Mention that USER may be a numeric ID or a user name.
Diffstat (limited to 'src')
-rw-r--r--src/setuidgid.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/setuidgid.c b/src/setuidgid.c
index 6e3bd92c1..b3f4653c3 100644
--- a/src/setuidgid.c
+++ b/src/setuidgid.c
@@ -50,19 +50,23 @@ usage (int status)
else
{
printf (_("\
-Usage: %s USERNAME COMMAND [ARGUMENT]...\n\
+Usage: %s OPTION USER COMMAND [ARGUMENT]...\n\
or: %s OPTION\n\
"),
program_name, program_name);
fputs (_("\
-Drop any supplemental groups, assume the user-ID and group-ID of\n\
-the specified USERNAME, and run COMMAND with any specified ARGUMENTs.\n\
+Drop any supplemental groups, assume the user-ID and group-ID of the specified\n\
+USER (numeric ID or user name), and run COMMAND with any specified ARGUMENTs.\n\
Exit with status 111 if unable to assume the required user and group ID.\n\
Otherwise, exit with the exit status of COMMAND.\n\
This program is useful only when run by root (user ID zero).\n\
\n\
"), stdout);
+ fputs (_("\
+ -g GID[,GID1...] also set the primary group-ID to the numeric GID, and\n\
+ (if specified) supplemental group IDs to GID1, ...\n\
+"), stdout);
fputs (HELP_OPTION_DESCRIPTION, stdout);
fputs (VERSION_OPTION_DESCRIPTION, stdout);
emit_bug_reporting_address ();