CentOS,Ubuntu,Fedora,Debian,Linux,KVM,Virtualization

CentOS,Ubuntu,Fedora,Debian,Linux,KVM,Virtualization

CentOS,Ubuntu,Fedora,Debian,Linux,KVM,Virtualization

sudo
11/08/2018 | 88
sudo - sudoedit - execute a command as another user
[SYNOPSIS] sudo OPTION COMMAND
option
-u USER causes sudo to run the specified command as a user other than root
-s runs the shell specified by the SHELL environment variable if it is set or the shell as specified in passwd(5)
-H sets the HOME environment variable to the homedir of the target user (root by default) as specified in passwd(5)
-l The -l (list) option will list out the allowed (and forbidden) commands for the invoking user on the current host
-h show help
-v sudo will update the user’s timestamp, prompting for the user’s password if necessary
-k The option to sudo invalidates the user’s timestamp by setting the time on it to the Epoch
-K The option is like -k except that it removes the user’s timestamp entirely
-b The option tells sudo to run the given command in the background