Sudo (superuser do) allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while logging the commands and arguments.
Sudo (superuser do) allows a system administrator to give certain users (or groups of users) the ability to run some (or all) commands as root while logging all commands and arguments. Sudo operates on a per-command basis, it is not a replacement for the shell. It's features include:
* The ability to restrict what commands a user may run on a per-host basis.
* Sudo does copious logging of each command, providing a clear audit trail of who did what. When used in tandem with syslogd, the system log daemon, sudo can log all commands to a central host (as well as on the local host). At CU, all admins use sudo in lieu of a root shell to take advantage of this logging.
* Sudo uses timestamp files to implement a "ticketing" system. When a user invokes sudo and enters their password, they are granted a ticket for 5 minutes (this timeout is configurable at compile-time). Each subsequent sudo command updates the ticket for another 5 minutes. This avoids the problem of leaving a root shell where others can physically get to your keyboard. There is also an easy way for a user to remove their ticket file, useful for placing in a .logout file.
* Sudo's configuration file, the sudoers file, is setup in such a way that the same sudoers file may be used on many machines. This allows for central administration while keeping the flexibility to define a user's privileges on a per-host basis. Please see the samples sudoers file below for a real-world example.
Project information
- Maintainer:
- Registry Administrators
- Driver:
- Not yet selected
- Licence:
-
Simplified BSD Licence,
Other/Open Source
(ISC)
View full history Series and milestones
main series is the current focus of development.
All packages Packages in Distributions
-
sudo source package in Xenial
Version 1.8.16-0ubuntu1.10 uploaded -
sudo source package in Wheezy
Version 1.8.5p2-1+nmu3+deb7u1 uploaded -
sudo source package in Trusty
Version 1.8.9p5-1ubuntu1.4 uploaded -
sudo source package in Squeeze
Version 1.7.4p4-2.squeeze.4 uploaded -
sudo source package in Sid
Version 1.9.14p2-1 uploaded