User Tools

Site Tools


linux:sudo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:sudo [2023/07/17 19:44] – removed - external edit (Unknown date) 127.0.0.1linux:sudo [2023/07/17 19:53] (current) peter
Line 1: Line 1:
 +====== Linux - Sudo ======
  
 +**sudo** allows a permitted user to execute a command as root (or another user), as specified by the security policy:
 +
 +  * It reads and parses **/etc/sudoers**, looks up the invoking user and its permissions,
 +  * then prompts the invoking user for a password (normally the user’s password, but it can as well be the target user’s password. Or it can be skipped with NOPASSWD tag),
 +  * after that, sudo creates a child process in which it calls setuid() to switch to the target user,
 +  * next, it executes a shell or the command given as arguments in the child process above.
 +
 +
 +----
 +
 +[[Linux:Sudo:Sudoers|Sudoers]]
 +
 +----

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki