You are not logged in.

#1 2019-12-25 23:36:09

makosmos
Member
Registered: 2019-12-25
Posts: 28

Shutdown permissions

Hi,

I'm on a fresh install of arch,
When I try to shutdown the computer using the shutdown command with a non root user (the privileges are : power, wheel, audio, optical, storage, video),
I get the following errors, to successfully shutdown my computer I have to use sudo shutdown

Failed to set wall message, ignoring: Access denied
Failed to call ScheduleShutdown in logind, proceeding with immediate shutdown: Access denied
Failed to set wall message, ignoring: Access denied
Failed to power off system via logind: Access denied
Failed to talk to init daemon.

I searched and read the wiki but I didn't find anything that could help me fixing it.

Thanks in advance for your help

Offline

#2 2019-12-25 23:39:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,578
Website

Re: Shutdown permissions


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2019-12-25 23:44:32

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Shutdown permissions

Why did you add yourself to all of those unnecessary groups?
https://wiki.archlinux.org/index.php/Us … emd_groups


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#4 2019-12-26 00:10:10

makosmos
Member
Registered: 2019-12-25
Posts: 28

Re: Shutdown permissions

Thanks for your reply, but the issue is that I still have to use the prefix sudo
How to simply shutdown, reboot without sudo using non root users ?

Slithery wrote:

Why did you add yourself to all of those unnecessary groups?
https://wiki.archlinux.org/index.php/Us … emd_groups

It was a desperate act of my own to try fixing it, but as you said it was unnecessary

Offline

#5 2019-12-26 00:13:49

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,578
Website

Re: Shutdown permissions

My intent was not to suggest passively looking at the linked page and expecting it to - via some process of osmosis - make the problems go away.

Read and follow that page.  Check whether the required packages are installed.  Post the results of the recommended information gathering / diagnostic steps.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2019-12-26 00:36:02

makosmos
Member
Registered: 2019-12-25
Posts: 28

Re: Shutdown permissions

Trilby wrote:

My intent was not to suggest passively looking at the linked page and expecting it to - via some process of osmosis - make the problems go away.

Read and follow that page.  Check whether the required packages are installed.  Post the results of the recommended information gathering / diagnostic steps.

I agree with you, after some further reading, I was able to fix the issue. (alias shutdown='sudo shutdown')

Thanks for your help

Last edited by makosmos (2019-12-26 14:20:27)

Offline

#7 2019-12-26 00:49:12

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Shutdown permissions


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB