Timeline for Why doesn't the sudo command need the root password?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2015 at 1:01 | comment | added | James Tocknell |
Sure, sudo does use elevated privileges (but that's not unique to sudo, e.g. mount does also), but the command that you call i.e. command in sudo command may not (depending on what is set in /etc/sudoers ).
|
|
Jun 14, 2015 at 22:15 | comment | added | ctrl-alt-delor |
@aragilar yes sudo does not always give elevated privileges, but it does run at elevated privileges, after doing its thing (checking authentication, it may drop privileges). It needs these elevated privileges to be able to change user.
|
|
Aug 19, 2014 at 1:10 | comment | added | James Tocknell | Except sudo doesn't imply elevated privileges, just different ones to the current user. E.g. you could run a program as a normal user who doesn't have a shell. Also, being in the sudoers file doesn't give root. | |
Aug 18, 2014 at 2:09 | history | answered | somethingSomething | CC BY-SA 3.0 |