Sudo

Sudo

Infobox Software
name = sudo
developer = Todd C. Miller


caption = sudo in a terminal
latest release version = 1.6.9p15
latest release date = March 27, 2008
latest preview version = 1.7b4
latest preview date = March 28, 2008
operating system = Unix-like
genre = Privilege authorization
license = ISC-style [ [http://www.sudo.ws/sudo/license.html Sudo License ] ]
website = http://www.sudo.ws/

The sudo ("super user do"; officially pronEng|ˈsuːduː, [cite web |url=http://www.gratisoft.us/sudo/ |title=Sudo Main Page |author=Miller, Todd C |accessdate=2007-03-05] though IPA|/ˈsuːdoʊ/ is also common) command is a program for Unix-like computer operating systems that allows users to run programs with the security privileges of another user (normally the superuser). By default, sudo will prompt for a user password but it may be configured to require the root password or no password at all. [cite web |url=http://www.gratisoft.us/sudo/man/sudo.html |title=Manpage for sudo |accessdate=2007-11-04] sudo is able to log each command run and in some cases has completely supplanted the superuser login for administrative tasks, most notably in Ubuntu Linux and Apple's Mac OS X. [ [https://help.ubuntu.com/community/RootSudo RootSudo - Community Ubuntu Documentation ] ] [ [http://www.macdevcenter.com/pub/a/mac/2002/10/22/macforunix.html MacDevCenter.com - Top Ten Mac OS X Tips for Unix Geeks ] ]

The program was originally written by Bob Coggeshall and Cliff Spencer "around 1980" at the Department of Computer Science at SUNY/Buffalo. The current version is maintained by OpenBSD developer Todd C. Miller and distributed under a BSD-style license. [cite web|url=http://www.gratisoft.us/sudo/history.html|title=A Brief History of Sudo|author=Miller, Todd C|accessdate=2007-03-05]

Design

Before running a command with sudo, users typically supply their password. Once authenticated, and if the /etc/sudoers configuration file permits the user access, then the command is run. There exist several graphical frontends for use in a GUI environment, notably kdesu, [https://launchpad.net/kdesudo kdesudo] and gksudo; Mac OS X also has the "authorization services", a GUI equivalent to sudo. By default, the user's password will be retained for fifteen minutes [As stated in the sudo(8) man page.] , allowing the user to execute several successive commands as root without having to provide his or her password multiple times.

The following is an example where the user is denied access:

snorri@rimu:~$ sudo vi /etc/resolv.conf

We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things:

#1) Respect the privacy of others. #2) Think before you type. #3) With great power comes great responsibility.

Password: snorri is not in the sudoers file. This incident will be reported. snorri@rimu:~$

Below is the log of this failed attempt, then a later successful one, after "snorri" has been added to /etc/sudoers:

snorri@rimu:~$ sudo tail /var/log/auth.log Aug 5 06:00:28 localhost sudo: snorri : user NOT in sudoers ; TTY=pts/1 ; PWD =/home/snorri ; USER=root ; COMMAND=/usr/bin/vi /etc/resolv.conf Aug 5 06:01:15 localhost su [15573] : (pam_unix) session opened for user root by snorri(uid=1000) Aug 5 06:02:09 localhost sudo: snorri : TTY=pts/1 ; PWD=/home/snorri ; USER=root ; COMMAND=/usr/bin/vi /etc/resolv.conf Aug 5 06:02:49 localhost sudo: snorri : TTY=pts/1 ; PWD=/home/snorri ; USER=root ; COMMAND=/usr/bin/tail /var/log/auth.log

See also

* Comparison of privilege authorization features
* setuid
* su
* sysctl
* User Account Control
* runas

References

External links

* [http://www.sudo.ws The sudo homepage]
* [http://sourceforge.net/projects/rootsh rootsh] and [http://sourceforge.net/projects/sudosh/ sudosh] , sudo wrappers for logging
* [http://rixstep.com/2/20070201,00.shtml "Sudo Fun"] , a brief sudo guide
* [http://xkcd.com/149/ "xkcd"] , an illustrated example


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Sudo — (super user do) ist ein Befehl unter Unix und unixartigen Betriebssystemen wie Linux oder Mac OS X, der dazu benutzt wird, Prozesse mit den Rechten eines anderen Benutzers (z. B. des Superusers root) zu starten. Der dauerhafte Wechsel der… …   Deutsch Wikipedia

  • sudo — (kurz für substitute user do[1]) ist ein Befehl unter Unix und unixartigen Betriebssystemen wie Linux oder Mac OS X, der dazu benutzt wird, Prozesse mit den Rechten eines anderen Benutzers (z. B. des Superusers root) zu starten. Der… …   Deutsch Wikipedia

  • Sudo — Saltar a navegación, búsqueda El programa sudo (de las siglas en inglés de superuser o substitute user do) es una utilidad de los sistemas operativos tipo Unix, como Linux, BSD, o Mac OS X, que permite a los usuarios ejecutar programas con los… …   Wikipedia Español

  • sudo — (abréviation de substitute user do, en anglais : « exécuter en se substituant à l utilisateur »[1]) est une commande informatique utilisée principalement dans les systèmes d exploitation de type Unix. Cette commande permet à l… …   Wikipédia en Français

  • Sudo — (abréviation de substitute user do, en anglais : « exécuter en se substituant à l utilisateur »[1]) est une commande informatique utilisée principalement dans les systèmes d exploitation de type Unix et Linux. Cette commande permet …   Wikipédia en Français

  • Sudo — (англ. superuser [substitute user] do, дословно «выполнить от имени суперпользователя»)  это программа, разработанная в помощь системному администратору и позволяющая делегировать те или иные привилегированные ресурсы пользователям с… …   Википедия

  • SUDO-Q — was a BBC quiz show hosted by Eamonn Holmes for four series between 2005 and 2007. The format was based on a mix of the number puzzle Sudoku and general knowledge questions. GameplayThree teams of two (originally three) compete. There are four… …   Wikipedia

  • Sudo — (de las siglas superuser do ) es un comando Unix similar a su, que permite a un usuario ejecutar comandos con permisos de root, sólo que en lugar de introducir la contraseña de root, se ha de introducir la del propio usuario. Otra diferencia es… …   Enciclopedia Universal

  • sudō — *sudō germ.?, Femininum: nhd. Naht; ne. seam (Neutrum); Rekontruktionsbasis: an.; Etymologie: vergleiche idg. *si̯ū , *sīu̯ , Verb, nähen, Pokorn …   Germanisches Wörterbuch

  • sudo — El programa sudo (del inglés superuser do) es una utilidad de los sistemas operativos tipo Unix, como Linux, BSD, o Mac OS X, que permite a los usuarios ejecutar programas con los privilegios de seguridad de otro usuario (normalmente el usuario… …   Wikipedia Español

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”