"Not authorized to perform operation" for internal disk partition after elogind switch

Hi! Very old arch user here…

Somehow I am lost with this problem. Any ideas?

Thanks, Aris

P.S. I know I can mount with fstab but I want also to have automatic mounting rules for external disks as well.
P.P.S. What do I need to use instead of polkit? If only elogind, then how?
P.P.P.S External disks mounting works with write permissions.

As I remember, during last 10 years I had solved all my archlinux problems myself without asking any questions… And I have spent more than a week searching and trying to solve this question in all good places… I just guess that this problem is not difficult for people who are directly involved with openrc and elogind. I have got installed polkit-elogind but rc-update says no polkit service nor polkit-elogind…

rc-status --all
Runlevel: boot
 hwclock                                                           [  started  ]
 modules                                                           [  started  ]
 fsck                                                              [  started  ]
 root                                                              [  started  ]
 mtab                                                              [  started  ]
 swap                                                              [  started  ]
 localmount                                                        [  started  ]
 procfs                                                            [  started  ]
 sysctl                                                            [  started  ]
 bootmisc                                                          [  started  ]
 net.lo                                                            [  started  ]
 hostname                                                          [  started  ]
 urandom                                                           [  started  ]
 opentmpfiles-setup                                                [  started  ]
 loopback                                                          [  started  ]
 termencoding                                                      [  started  ]
 keymaps                                                           [  started  ]
 binfmt                                                            [  started  ]
Runlevel: default
 udev                                                              [  started  ]
 localmount                                                        [  started  ]
 syslog-ng                                                         [  started  ]
 cronie                                                            [  started  ]
 dbus                                                              [  started  ]
 elogind                                                           [  started  ]
 NetworkManager                                                    [  started  ]
 bluetooth                                                         [  started  ]
 netmount                                                          [  started  ]
 alsasound                                                         [  started  ]
 acpid                                                             [  started  ]
 local                                                             [  started  ]
Runlevel: shutdown
 killprocs                                                         [  stopped  ]
 savecache                                                         [  stopped  ]
 mount-ro                                                          [  stopped  ]
Runlevel: nonetwork
 local                                                             [  started  ]
Runlevel: sysinit
 sysfs                                                             [  started  ]
 devfs                                                             [  started  ]
 udev                                                              [  started  ]
 dmesg                                                             [  started  ]
 kmod-static-nodes                                                 [  started  ]
 opentmpfiles-dev                                                  [  started  ]
 udev-trigger                                                      [  started  ]
 NetworkManager                                                    [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 xdm-setup                                                         [  started  ]
 modules-load                                                      [  started  ]
Dynamic Runlevel: manual

More info please.
Whats your DM?

Remove udev from default runlevel.

lxdm from community
Also, I have removed udev form default runlevel now and rebooted. Same no authorized…
P.S. I have switched to sddm-elogind now. The problem persists.

What about the ConsoleKit? What is the replecement? Because I have got

:: polkit-consolekit and polkit-elogind are in conflict (polkit). Remove polkit-elogind? [y/N]

P.S. I have checked once again in the other manjaro forum topic and I understand that we should not use consolekit packages.

@aris002: this is the list of the elogind programs/libraries that I installed and all is working fine. I’m using KDE so, I’ve qt5-base-nosystemd installed, you’ll have something else.
I compare also your rc-status with mine and its almost similar. I attach also this data.
The replacement for polkit-consolekit is polkit-elogind.

I hope that the list I’ve installed can help you.

[frank@dark9401 ~]$ rc-status --all
Runlevel: boot
 hwclock                                                                                                                                    [  started  ]
 modules                                                                                                                                    [  started  ]
 fsck                                                                                                                                       [  started  ]
 root                                                                                                                                       [  started  ]
 mtab                                                                                                                                       [  started  ]
 swap                                                                                                                                       [  started  ]
 localmount                                                                                                                                 [  started  ]
 sysctl                                                                                                                                     [  started  ]
 bootmisc                                                                                                                                   [  started  ]
 termencoding                                                                                                                               [  started  ]
 consolefont                                                                                                                                [  started  ]
 net.lo                                                                                                                                     [  started  ]
 procfs                                                                                                                                     [  started  ]
 urandom                                                                                                                                    [  started  ]
 hostname                                                                                                                                   [  started  ]
 keymaps                                                                                                                                    [  started  ]
 binfmt                                                                                                                                     [  started  ]
 loopback                                                                                                                                   [  started  ]
Runlevel: sysinit
 devfs                                                                                                                                      [  started  ]
 kmod-static-nodes                                                                                                                          [  started  ]
 sysfs                                                                                                                                      [  started  ]
 udev                                                                                                                                       [  started  ]
 dmesg                                                                                                                                      [  started  ]
 udev-trigger                                                                                                                               [  started  ]
Runlevel: nonetwork
 local                                                                                                                                      [  started  ]
Runlevel: shutdown
 killprocs                                                                                                                                  [  stopped  ]
 savecache                                                                                                                                  [  stopped  ]
 mount-ro                                                                                                                                   [  stopped  ]
Runlevel: default
 acpid                                                                                                                                      [  started  ]
 hdparm                                                                                                                                     [  started  ]
 dbus                                                                                                                                       [  started  ]
 elogind                                                                                                                                    [  started  ]
 cronie                                                                                                                                     [  started  ]
 ufw                                                                                                                                        [  started  ]
 NetworkManager                                                                                                                             [  started  ]
 netmount                                                                                                                                   [  started  ]
 xdm                                                                                                                                        [  started  ]
 cupsd                                                                                                                                      [  started  ]
 fuse                                                                                                                                       [  started  ]
 local                                                                                                                                      [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
 avahi-daemon                                                                                                                               [  started  ]
 xdm-setup                                                                                                                                  [  started  ]
 modules-load                                                                                                                               [  started  ]

This are the programs/libraries installed in my system:

accountservice-elogind
dbus-elogind
elogind
elogind-openrc
libelogind
polkit-elogind
procps-ng-elogind
sddm-elogind
udisk2-elogind

cdra-nosystemd
cups-nosystemd
device-mapper-nosystemd
libatasmart-nosystemd
libgudev-nosystemd
libinput-nosystemd
libpulse-nosystemd
libusb-nosystemd
libutil-linux-nosystemd
libwacom-nosystemd
lvm2-nosystemd
media-player-info-nosystemd
mkinitcpio-nosystemd
pcmciautils-nosystemd
rpcbinf-nosystemd
syslog-ng-nosystemd
upower-nosystemd
util-linux-nosystemd
xdg-use-nosystemd
xorg-server-common-nosystemd
xorg-server-nosystemd

A remark: mkinitcpio-nosystemd REPLACE your mkinitcpio.conf and if the HOOKS are different you can have problem. I was locked cause the encrypt HOOK wasn’t present in the new mkinitcpio.conf.

I hope that this info are useful: good luck! :slight_smile:

Thanks a lot for your help, fdc1b. I have qt5-base-nosystemd and I have KDE plasma for cases like this… :slight_smile: I have missed fuse but after installation and adding to default level it didn’t help. Are you sure your system mounts ntfs internal partitions? I will test ntfs-3g-fuse now. P.S fuse doesn’t help.

I don’t use internal ntfs partition, sorry :slight_smile: ext4 for the boot and btrfs.
I have ntfs-3g installed and I read ntfs (I use it for some external HD to share with Windows PCs).
Actually I’m using fuse2, but I’m planning to test the fuse3, it seems to be newer :slight_smile:

I have created ext4 internal partition. The same problem - “not authorized”. @fdc1b , are you sure you are not using fstab/mtab for ext4 partition mounting?

Solved! Thanks, for your help @artoo and @fdc1b !

in file /etc/polkit-1/rules.d/10-udisks2.rules
I had only one rule…

   polkit.addRule(function(action, subject) {
       if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
             action.id == "org.freedesktop.udisks2.filesystem-mount") &&
             subject.user == "aris002") {
            return "yes";
        }
    });

https://www.dynacont.net/documentation/linux/udisks2_polkit_Allow_unauthenticated_mounting/

Good :slight_smile: I was posting my fstab and mtab, but good that you find the solution.
But the rule, has been modified during the installation or it was always the same?

During the process to switching to openrc or, I think, elogind I added only one rule after some googling. But that was not enough… How I had it made to work before with ConsoleKit I cannot remember now.

if (action.id == "org.freedesktop.udisks2.filesystem-mount" )

P.S How to mark/indicate the topic solved? - Done!

why? …

because its obviously already by default in sysinit runlevel.

that is different from the default runlevel?

for example, this is what I see with rc-status
[ruben@flatbush ~]$ sudo rc-status
Runlevel: default
syslog-ng [ started ]
acpid [ started ]
dbus [ started ]
dhcpcd [ started ]
wicd [ started ]
unbound [ crashed ]
netmount [ started ]
xdm [ started ]
alsasound [ started ]
cronie [ started ]
cupsd [ started ]
ntpd [ started ]
sshd [ started ]
local [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
xdm-setup [ started ]
modules-load [ started ]
avahi-daemon [ started ]
Dynamic Runlevel: manual

ah ok -
[ruben@flatbush ~]$ sudo rc-status -a
Runlevel: boot
hwclock [ started ]
hostname [ started ]
modules [ started ]
fsck [ started ]
root [ started ]
mtab [ started ]
swap [ started ]
localmount [ started ]
sysctl [ started ]
bootmisc [ started ]
unbound [ crashed ]
procfs [ started ]
urandom [ started ]
termencoding [ started ]
keymaps [ started ]
binfmt [ started ]
loopback [ started ]
net.lo [ started ]
Runlevel: default
syslog-ng [ started ]
acpid [ started ]
dbus [ started ]
dhcpcd [ started ]
wicd [ started ]
unbound [ crashed ]
netmount [ started ]
xdm [ started ]
alsasound [ started ]
cronie [ started ]
cupsd [ started ]
ntpd [ started ]
sshd [ started ]
local [ started ]
Runlevel: shutdown
killprocs [ stopped ]
savecache [ stopped ]
mount-ro [ stopped ]
Runlevel: sysinit
sysfs [ started ]
dmesg [ started ]
devfs [ started ]
kmod-static-nodes [ started ]
udev [ started ]
udev-trigger [ started ]
Runlevel: nonetwork
local [ started ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed/wanted
xdm-setup [ started ]
modules-load [ started ]
avahi-daemon [ started ]
Dynamic Runlevel: manual
[ruben@flatbush ~]$

I suppose then the question is why move it from default to sysinit

Wrong question.
True question, why is udev in default runlevel?
It is supposed to be in sysinit, where it is already present.
default runlevel might be too late for udev, if it wasn’t in sysinit.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.