You are not logged in.

#1 2015-12-13 03:18:23

jamwil
Member
Registered: 2015-12-11
Posts: 4

[SOLVED]Unprivileged User receiving "Connection timed out" on shutdown

Good day! I'm attempting power management from my non-root user and getting unexpected errors. Steps I took:

1. Created the user and added to group 'wheel'
2. Enabled the wheel group in /etc/sudoers (using visudo, parses fine)
3. Installed polkit

At this point, running `systemctl reboot` or any variation of that results in this error:

Error getting authority: Error initializing Authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1; Timeout was reached (g-io-error-quark, 24)
Failed to set wall message, ignoring: method call timed out
Failed to reboot system via logind: Connection timed out
Failed to start reboot.target: Connection timed out

I can't find any occurrences of an error quite like this anywhere. It's a brand new install so all I've done aside from the steps listed above is the initial core install, and installed Zsh with grml's config file. Any help would be awesome!

Cheers,
James

Last edited by jamwil (2015-12-15 02:44:52)

Offline

#2 2015-12-13 08:37:20

Archforum101
Member
Registered: 2015-12-11
Posts: 44

Re: [SOLVED]Unprivileged User receiving "Connection timed out" on shutdown

Add your user to the "power" group. See this.

You shouldn't need sudo privileges to suspend/restart/shutdown.

Once user is added to power, you don't even need to prepend such commands with sudo ie: "sudo poweroff" or whatever. After adding my username to the power group. I pop open terminal and just type "reboot" no sudo, no systemctl. System reboots as expected.

Oddly just tried typing "suspend" in a similar way and no dice. So tried again with "systemctl suspend", which is technically the more proper approach and it worked, again, with no sudo needed. Laptop suspended as expected and recovered with a key press.

Last edited by Archforum101 (2015-12-13 08:41:33)

Offline

#3 2015-12-14 05:31:57

jamwil
Member
Registered: 2015-12-11
Posts: 4

Re: [SOLVED]Unprivileged User receiving "Connection timed out" on shutdown

You mean the files are in the computer?

Thanks, friend! Works like a charm.

Offline

Board footer

Powered by FluxBB