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] – ↷ Links adapted because of a move operation peterlinux:sudo [2023/07/17 19:53] (current) peter
Line 1: Line 1:
-====== Linux - Sudoers ======+====== Linux - Sudo ======
  
 +**sudo** allows a permitted user to execute a command as root (or another user), as specified by the security policy:
  
-[[linux:sudo|Sudoers]]+  * 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]] 
 + 
 +----
linux/sudo.1689623047.txt.gz · Last modified: 2023/07/17 19:44 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki