-g group Normally, sudo runs a command with the primary group set to the one specified by the password
database for the user the command is being run as (by default, root). The -g (group) option
causes sudo to run the command with the primary group set to group instead. To specify a gid
instead of a group name, use #gid. When running commands as a gid, many shells require that
the '#' be escaped with a backslash ('\'). If no -u option is specified, the command will be
run as the invoking user (not root). In either case, the primary group will be set to group.
|