You are not logged in.

#1 2012-08-13 02:16:37

kekules_dream
Member
Registered: 2009-05-19
Posts: 102

[SOLVED] systemd reboot and poweroff as user

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

#2 2012-08-13 03:39:25

Smasher816
Member
Registered: 2012-03-15
Posts: 32
Website

Re: [SOLVED] systemd reboot and poweroff as user

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

#3 2012-08-13 04:24:03

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] systemd reboot and poweroff as user

@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

#4 2012-08-13 09:06:29

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: [SOLVED] systemd reboot and poweroff as user

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

#5 2012-08-13 10:16:45

kekules_dream
Member
Registered: 2009-05-19
Posts: 102

Re: [SOLVED] systemd reboot and poweroff as user

Installing consolekit solved it.  I'm sure sudo would have, too.  Thanks to all.

Offline

Board footer

Powered by FluxBB