OS Manuals

/usr/bin/sudo

Give certain users the ability to run some commands as root

From sudo 1.9.17_p2-r12 (os), captured 2026-11-05 by running sudo --help (exit 1) · terse output. permalink

Also provided by 1 other package version
sudo: /etc/sudo.conf is owned by uid 1100, should be 0
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
Options (28)
OptionDescriptionSource
-A, --askpassNormally, if sudo requires a password, it will read it from the user's terminal.man
-B, --bellRing the bell as part of the password prompt when a terminal is present.man
-b, --backgroundRun the given command in the background.man
-C, --close-from numClose all file descriptors greater than or equal to num before executing a command.man
-D, --chdir directoryRun the command in the specified directory instead of the current working directory.man
-E, --preserve-envIndicates to the security policy that the user wishes to preserve their existing environment variables.man
-e, --editEdit one or more files instead of running a command.man
-g, --group groupRun the command with the primary group set to group instead of the primary group specified by the target user's password database entry.man
-H, --set-homeRequest that the security policy set the HOME environment variable to the home directory specified by the target user's password database entry.man
-h, --helpDisplay a short help message to the standard output and exit.man
-i, --loginRun the shell specified by the target user's password database entry as a login shell.man
-K, --remove-timestampSimilar to the -k option, except that it removes every cached credential for the user, regardless of the terminal or parent process ID.man
-k, --reset-timestampWhen used without a command, invalidates the user's cached credentials for the current session.man
-l, --listIf no command is specified, list the privileges for the invoking user (or the user specified by the -U option) on the current host.man
-N, --no-updateDo not update the user's cached credentials, even if the user successfully authenticates.man
-n, --non-interactiveAvoid prompting the user for input of any kind.man
-P, --preserve-groupsPreserve the invoking user's group vector unaltered.man
-p, --prompt promptUse a custom password prompt with optional escape sequences.man
-R, --chroot directoryChange to the specified root directory (see chroot(8)) before running the command.man
-r, --role roleRun the command with an SELinux security context that includes the specified role.man
-S, --stdinWrite the prompt to the standard error and read the password from the standard input instead of using the terminal device.man
-s, --shellRun the shell specified by the SHELL environment variable if it is set or the shell specified by the invoking user's password database entry.man
-t, --type typeRun the command with an SELinux security context that includes the specified type.man
-U, --other-user userUsed in conjunction with the -l option to list the privileges for user instead of for the invoking user.man
-T, --command-timeout timeoutUsed to set a timeout for the command.man
-u, --user userRun the command as a user other than the default target user (usually root).man
-V, --versionPrint the sudo version string as well as the version string of any configured plugins.man
-v, --validateUpdate the user's cached credentials, authenticating the user if necessary.man
Exit status (1) from the manual page
0the user is allowed to run sudo and they authenticated successfully (as required by the security policy)
Examples (7) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.