1

For some reason, I can run halt, poweroff, shutdown, and reboot as a regular user without root. How can I fix this? Is it something to do with user groups, or is it a seting somewhere?

tkbx
  • 10,847
  • 2
    Related: http://unix.stackexchange.com/questions/80492/how-can-i-ensure-only-the-root-user-have-the-right-to-halt-reboot-the-system – slm Aug 02 '13 at 19:04
  • 2
    This is a distribution dependent question, which are you running? – msw Aug 02 '13 at 23:08
  • @msw Arch Linux – tkbx Aug 06 '13 at 22:25
  • It is not an error, so you don't have to fix it, you would like to change it but I see no need since if two users are logged on the system you WILL NEED root permission to shut it down. – YoMismo Feb 12 '14 at 08:13

1 Answers1

1

It seems on Arch Linux that if you install polkit, and your are the only "common user" online on the system(local user through systemd-logind ), you can execute the shutdown/poweroff/reboot commands without root password.

Otherwise, you will be asked for the root password.