sudo

A command that runs another command with administrator (root) rights after checking you are allowed to.

In more detail

sudo stands for substitute user do, and it records who ran what. It is needed for jobs that change files every user shares, such as installing system packages. Which accounts may use sudo, and whether they need a password, is configured on each machine.

Examples

sudo is Ansible's default become method; --ask-become-pass supplies its password.
sudo apt install git-all
sudo reads a policy, the sudoers file, that says which users may run which commands as which target user. Each use is logged, and a rule can allow one specific command, such as restarting one service, instead of a full root shell. Prefer narrow rules; sudo -l shows what you are allowed to run.
auditd's auid names the human behind a sudo command.

Related terms

Taught in

References

Certification courses