[systemd-devel] systemctl reboot/halt with non-privilege user

Reindl Harald h.reindl at thelounge.net
Wed Oct 28 11:43:16 UTC 2020



Am 28.10.20 um 12:40 schrieb An Liu:
> Hi, folks,
> 
> I used to type systemctl reboot with non-privileged users, and to my 
> surprise, the system goes down for the reboot.
> 
> I've tested in both debian and centos 7, they act the same, however, 
> systemctl halt will prompt you to enter administrator password to continue.

which shows it's configureable

> Is it default behavior by design? I dont think a non-privileged user 
> could reboot the system as he/she wishes.
> 
> btw, I'm in an HPC related domain, if this behavior of systemctl is 
> allowed, every single user could reboot the whole cluster as they wish, 
> it's a disaster.

https://bbs.archlinux.org/viewtopic.php?id=152565


More information about the systemd-devel mailing list