linux:sudo
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:sudo [2023/07/17 19:44] – removed - external edit (Unknown date) 127.0.0.1 | linux: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 **/ | ||
+ | * 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: | ||
+ | |||
+ | ---- |