Hi,

I was wondering if there is a possibility to call "systemctl poweroff" as
non-root user in this scenario:

1.        I have no PolicyKit on my system, so I get access denied.

2.       Calling with "-f" parameter also fails, with "Must be root" error.

3.       I'd like to avoid using "sudo".

Theoretically there is no other way, am I right?

But what about CAP_SYS_BOOT? Does the systemctl shouldn't verify if this
capability is set and allow non-root user to shut down the system?

 

Best regards,

Michal

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to