If I want to shut down my machine programmatically or on the terminal, I must do sudo poweroff
or sudo shutdown
. If I want to shut down my machine through my window manager and desktop environment, I navigate to my application menu and click "shut down". This does not require my password. How is this implemented?
Asked
Active
Viewed 32 times
1

JesseTG
- 121
-
3Exactly how it is implemented may depend on what GUI (desktop session) and distribution you are using, but see for example How does gnome reboot without root privileges? and its related questions – steeldriver Apr 16 '16 at 16:20