

C fd Normally, sudo will close all open file descriptors other than Option you cannot use shell job control to manipulate the process. b The -b ( background) option tells sudo to run the givenĬommand in the background. Otherwise, the value specified by theĪskpass option in sudoers(5) is used. IfĮnvironment variable is set, it specifies the User's password and output the password to the standard output. If the -A ( askpass) option is specified,Ī (possibly graphical) helper program is executed to read the OPTIONS sudo accepts the following command line options: -A Normally, if sudo requires a password, it will read it from theĬurrent terminal. Will log via syslog(3) but this is changeable at configure time Sudo can log both successful and unsuccessful attempts (as wellĪs errors) to syslog(3), a log file, or both. Root, not the user specified by SUDO_USER Note however, that the sudoers lookup is still done for Option to remain useful even when being run via a sudo-run script or This can be used by a user to log commands through sudoĮven when a root shell has been invoked. Is set, sudo will use this value to determine who the actual Users to determine for themselves whether or not they are allowed User tries to run sudo with the -l or -v option. Note that the mail will not be sent if an unauthorized If a user who is not listed in the sudoers file tries to run aĬommand via sudo, mail is sent to the proper authorities, asĭefined at configure time or in the sudoers file (defaults to Is not entered within a configurable time limit. IfĪ password is required, sudo will exit if the user's password
ALLOW A USER TO SUDO AS ANOTHER USER UPDATE
By running sudo with the -v option,Ī user can update the time stamp without running a command. Sudo determines who is an authorized user by consulting the file When invoked as sudoedit, the -e option (described below), Once a user has been authenticated,Ī time stamp is updated and the user may then use sudo without a Sudo requires that users authenticate themselves with a passwordīy default ( NOTE: in the default configuration this is the user's The same as the invoking user, no password is required. If the invoking user is root or if the target user is Is initialized based on the group file (unless the -P option was Target user as specified in the passwd file and the group vector The real and effective uid and gid are set to match those of the Superuser or another user, as specified in the sudoers file. ĭESCRIPTION sudo allows a permitted user to execute a command as the Sudo, sudoedit - execute a command as another user SYNOPSIS sudo -h | -K | -k | -L | -V
ALLOW A USER TO SUDO AS ANOTHER USER MANUAL
Command to display sudo manual in Linux: $ man 1 sudo NAME
