You are not logged in.
I decided to try systemd and all my services are working but I cannot reboot or poweroff as user.
$ systemctl poweroff
Failed to issue method call: Access denied
Failed to issue method call: Access denied
I also get that duplicate message for systemctl reboot.
According to the systemd wiki article, I should be able to reboot and poweroff as user and even if not, I should be given the opportunity to provide the root password, but I was not. Both commands work as expected if I su to root. Any suggestions? Thanks.
Last edited by kekules_dream (2012-08-13 10:14:50)
Offline
This should help you out.
https://wiki.archlinux.org/index.php/Al … o_Shutdown
I personally use the passwordless sudo option on my systemd machine and it works fine.
(Arch) Linux is user friendly, its just very selective of its friends
Offline
@Smasher816 - the op is right that he/she should be able to reboot, shutdown without superuser access with systemd. I just began using systemd and mine seems to work fine. You aren't logged in as root or another user in another terminal or tty are you? I know that you should STILL be given the option to enter the root password and shutdown, but that is the best I can think of at the moment
Offline
afaik you have to use ConsoleKit to set up a proper user session, otherwise you will get "access denied" (that is until ConsoleKit can be dropped and this is handled by systemd itself, but this may take a while).
You are only asked for the root password if you have a ConsoleKit session but are not allowed to use the commands because, for example, another user is logged into another tty.
Offline
Installing consolekit solved it. I'm sure sudo would have, too. Thanks to all.
Offline