u The -u (user) option causes sudo to run the specified command as a S The -S (stdin) option causes sudo to read the password from standard Variable if it is set or the shell as specified in passwd(5). s The -s (shell) option runs the shell specified by the SHELL environment Real and effective group IDs, however, are still set to match the The group vector to the list of groups the target user is in. P The -P (preserve group vector) option causes sudo to preserve the Similarly, %h will be replaced with the local hostname. %u escape, %u will be replaced with the user's login name. p The -p (prompt) option allows you to override the default password This option is useful in conjunction with grep(1). L The -L (list defaults) option will list out the parameters that mayīe set in a Defaults line along with a short description for each. l The -l (list) option will list out the allowed (and forbidden) commands Likewise, this option does not require a password. K The -K (sure kill) option to sudo removes the user's timestampĮntirely. This option does not require a password and was added toĪllow a user to revoke sudo permissions from a. The next time sudo is run a password willīe required. k The -k (kill) option to sudo invalidates the user's timestamp by setting the Of the target user (root by default) as specified in H The -H (HOME) option sets the HOME environment variable to the homedir h The -h (help) option causes sudo to print a usage message and exit. With BSD login classes where sudo has been configured with the -with-logincap option. The command must be run as root, or the sudo command must be run fromĪ shell that is already root. If the class argument specifies an existing user class, Restricted by the default login capabilities for the user the command Specifying a class of - indicates that the command should be run The class argument can be eitherĪ class name as defined in /etc/nf, or a single '-' character. c The -c (class) option causes sudo to run the specified command with resources Note that if you use the -b option you cannot use shell job control b The -b (background) option tells sudo to run the given command in theīackground. Where sudo has been configured with the -with-bsdauth option. This option is only available on systems that support BSD authentication The system administrator may specify a list of sudo-specificĪuthentication methods by adding an "auth-sudo" entry in /etc/nf. a The -a (authentication type) option causes sudo to use the specifiedĪuthentication type when validating the user, as allowed by Sudo -V | -h | -l | -L | -v | -k | -K | -s command Allows a permitted user to execute a command as the superuser or another user,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |