The officially official Devuan Forum!

You are not logged in.

#1 Re: Hardware & System Configuration » [SOLVED] Mounting and shutdown not allowed as normal user » 2021-08-29 08:46:47

Thanks for your replies.

Strange thing happened this morning, mounting and shutdown worked as they used to - one time. After a reboot, the issue was back. Didn't change anything in the meantime, so the issue seemed to appear at random.

apt's history did not show anything unexpected, neither Firefox, Thunderbird nor sane should mess with this. I dumped avahi, though. Not a permissions thing either, but …

Checked elogind and "loginctl list" returned "No sessions.", which, being logged in, didn't seem right. A further look into elogind turned up this warning on https://wiki.gentoo.org/wiki/Elogind#Service

if there are problems getting poweroff/reboot/suspend etc. working from desktop environment, putting elogind into boot runlevel will make sure it is started properly before any user is logged in and so should fix the problem.

There I had all the puzzle pieces. Here's what happened:
I have elogind started by runit. My desktop is started automatically by slim, which in turn was still started using a sysv init script.

The removal of avahi apparently triggered a race condition. With avahi gone, the desktop started earlier than elogind - no elogind, no shutdown permissions.

Moved slim to runit, made it conditional on elogind, et voilà: Works.

Thanks again for the apt and elogin hints!

#2 Hardware & System Configuration » [SOLVED] Mounting and shutdown not allowed as normal user » 2021-08-28 10:02:16

Rena
Replies: 6

Hi,

a few days ago KDE suddenly started to

a) deny mounting USB drives.
The drive pops up in the desktop's system tray, but when I try to open it, it says I have insufficient rights. I have to open a console and mount as root, only then I can open the drive using a file manager.

b) deny shutdown.
Whenever I try to shutdown from the KDE desktop, I end up with the login manager slim's login page; only from there I can shutdown. (I can, however, still suspend the system using KDE.)

Both of this used to work with my normal user account. I have no idea why this happened and how to fix it to get back to the previous behaviour.

I'm sure I did not modify any system settings. Might have done an apt upgrade in the days before, but I don't see why that all of a sudden should mess with the settings. I'm lost in several explanations on the web involving polkit and policykit, which are apparently incompatible, and even found some systemd files (specifically /usr/share/polkit-1/actions/org.freedesktop.login1.policy), even though I am and have always been using runit with Devuan.

Confused, any help appreciated! I don't want to install the whole system again.

Board footer

Forum Software