[systemd-devel] Unprivileged poweroff
Michal Witanowski
m.witanowski at samsung.com
Wed Sep 10 07:03:27 PDT 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20140910/9effe9b3/attachment.html>
More information about the systemd-devel
mailing list