You are not logged in.

#1 2014-04-14 12:38:04

donmiguel
Member
Registered: 2014-04-14
Posts: 12

kde authorization (polkit and dbus driving me insane)

hi,
apologies if this is complete newbie territory, but it's been a long time since i last used linux as a desktop OS so polkit and dbus are all new to me.
the problem, basically, is that KDE won't let me do anything i would consider privileged. network manager applet won't let me change wifi connections, package manager doesn't work and usb disks won't mount.
let's start with usb disks. i added a polkit rule as per the wiki:

[root@mjollnir rules.d]# cat 10-enable-mount.rules 
polkit.addRule(function(action, subject) {
    if (action.id == "org.freedesktop.udisks2.filesystem-mount-system" && subject.isInGroup("storage")) {
        return polkit.Result.YES;
    }
});

and i am in the storage group:

$ groups
wheel network audio storage power 

but i get the following error when i try to open a newly inserted usb disk in dolphin:

Error checking authorization: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.udisks2.filesystem-mount is not registered (polkit-error-quark, 0)

and now for network manager -
running nm-applet from a terminal and trying to change wifi connection gives me this:

** (nm-applet:1369): WARNING **: Could not create object for /org/freedesktop/NetworkManager/Settings/0: No session found for uid 1000 (unknown)

** (nm-applet:1369): WARNING **: Could not create object for /org/freedesktop/NetworkManager/Settings/3: No session found for uid 1000 (unknown)

** (nm-applet:1369): WARNING **: handle_property_changed: failed to update property 'available-connections' of object type NMDeviceWifi.

(nm-applet:1369): nm-applet-WARNING **: Error connecting to ModemManager: Error calling StartServiceByName for org.freedesktop.ModemManager1: GDBus.Error:org.freedesktop.systemd1.LoadFailed: Unit dbus-org.freedesktop.ModemManager1.service failed to load: No such file or directory.

(nm-applet:1369): nm-applet-WARNING **: Failed to register as an agent: (32) Session not found

(nm-applet:1369): nm-applet-WARNING **: Failed to register as an agent: (32) Session not found


(nm-applet:1369): nm-applet-WARNING **: Failed to add/activate connection: (32) No session found for uid 1000 (unknown)

finally, launching apper from the terminal:

QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

i do have dbus processes running under my userid, so i think i have a session but i'm not really sure what i'm looking for, and learning the complete ins and outs of dbus is more than a little daunting for what should be a relatively simple task!

can anyone point me in the right direction to start figuring this out? i'm currently seriously considering a complete reinstall but i'm not sure i have the time for that, especially since i don't know if it would necessarily solve the problem sad

fwiw, i booted a mint livecd and all this stuff worked fine so it's not my hardware

Offline

#2 2014-04-14 15:18:12

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: kde authorization (polkit and dbus driving me insane)

Hello
The rules in the wiki are just examples; don't use them without realizing what they do.

But with the udisks2 package installed and the default actions in /usr/share/polkit-1/actions/org.freedesktop.udisks2.policy which comes with it, you  don't need other rules files; so remove the one you created '10-enable-mount.rules' (which concerns system devices, usb removable devices are not system internal devices; and the 'storage' group is no longer required).
You should use the systemd-logind service to have an active session as a user, and the mounting in Dolphin should work just with the default configuration of udisks2.

For the problem with network manager, I will leave that to a more knowledgeable Archer in network configuration to answer you.

And the 'QDBusConnection' messages are just warnings without known bad consequences (I get those messages also and I have not seen any application misbehaving).

Last edited by berbae (2014-04-14 15:25:09)

Offline

#3 2014-04-14 15:36:57

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

berbae,
i added the mount rule in desperation when the default configuration did not work and googling the error did not enlighten me smile

I have removed the rule and tried again just to be sure - exactly the same error. everything should now be back to default.

I am logging in via kdm - i presume that uses systemd-logind?

Offline

#4 2014-04-14 15:42:16

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: kde authorization (polkit and dbus driving me insane)

How do you start kdm?

Offline

#5 2014-04-14 15:45:59

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

from the command line as root... not a good way of doing it?

Offline

#6 2014-04-14 19:01:58

mariusmeyer
Member
From: Norway
Registered: 2009-04-25
Posts: 244

Re: kde authorization (polkit and dbus driving me insane)

Do as the wiki says: just enable the kdm service.

Offline

#7 2014-04-14 19:10:03

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

just tried that - same error i'm afraid

Offline

#8 2014-04-14 21:32:21

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: kde authorization (polkit and dbus driving me insane)

Post the output of 'systemctl' and of 'loginctl show-session $XDG_SESSION_ID'.
It would be better if you said the exact commands you used, rather than 'from the command line as root' or 'just tried that'. It's somewhat vague.

If you log in as root and try to enter graphical environment from there, it's not the proper way to do this.
Do you say you run KDE as root?

Last edited by berbae (2014-04-14 21:32:49)

Offline

#9 2014-04-14 21:44:04

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

Sorry for being vague - i understand it's not easy dealing with newbies smile i'll try to be clearer!

I was running kdm as root, then logging in as a regular user. I've now enabled the kdm systemctl service as per mariusmeyer's instructions, but it didn't change what happens when i insert a USB disk - same error as before.

command output below (username redacted)

$ loginctl show-session $XDG_SESSION_ID
Id=c2
Name=XXX
Timestamp=Mon 2014-04-14 20:06:49 BST
TimestampMonotonic=41104959
VTNr=7
Display=:0
Remote=no
Service=kde
Scope=session-c2.scope
Leader=434
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0

and systemctl output

UNIT                                                                                                       LOAD   ACTIVE SUB       DESCRIPTION
proc-sys-fs-binfmt_misc.automount                                                                          loaded active waiting   Arbitrary Executable File Formats File System Automount Point
sys-devices-pci0000:00-0000:00:02.0-backlight-acpi_video0.device                                           loaded active plugged   /sys/devices/pci0000:00/0000:00:02.0/backlight/acpi_video0
sys-devices-pci0000:00-0000:00:02.0-drm-card1-card1\x2deDP\x2d1-intel_backlight.device                     loaded active plugged   /sys/devices/pci0000:00/0000:00:02.0/drm/card1/card1-eDP-1/intel_backlight
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d1-1\x2d1:1.0-host3-target3:0:0-3:0:0:0-block-sdb-sdb1.device loaded active plugged   micro_USB Linux_Mint_16_Cinnamon_64-bit
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d1-1\x2d1:1.0-host3-target3:0:0-3:0:0:0-block-sdb-sdb2.device loaded active plugged   micro_USB Linux_Mint_16_Cinnamon_64-bit
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d1-1\x2d1:1.0-host3-target3:0:0-3:0:0:0-block-sdb-sdb3.device loaded active plugged   micro_USB Linux_Mint_16_Cinnamon_64-bit
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d1-1\x2d1:1.0-host3-target3:0:0-3:0:0:0-block-sdb.device      loaded active plugged   micro_USB Linux_Mint_16_Cinnamon_64-bit
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d7-1\x2d7:1.0-bluetooth-hci0-rfkill2.device                   loaded active plugged   /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/rfkill2
sys-devices-pci0000:00-0000:00:14.0-usb1-1\x2d7-1\x2d7:1.0-bluetooth-hci0.device                           loaded active plugged   /sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0
sys-devices-pci0000:00-0000:00:16.3-tty-ttyS0.device                                                       loaded active plugged   Lynx Point-LP HECI KT
sys-devices-pci0000:00-0000:00:19.0-net-enp0s25.device                                                     loaded active plugged   Ethernet Connection I218-LM
sys-devices-pci0000:00-0000:00:1b.0-sound-card0.device                                                     loaded active plugged   Lynx Point-LP HD Audio Controller
sys-devices-pci0000:00-0000:00:1c.1-0000:03:00.0-ieee80211-phy0-rfkill1.device                             loaded active plugged   /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill1
sys-devices-pci0000:00-0000:00:1c.1-0000:03:00.0-net-wlp3s0.device                                         loaded active plugged   Dual Band Wireless-N 7260
sys-devices-pci0000:00-0000:00:1c.4-0000:04:00.0-backlight-acpi_video1.device                              loaded active plugged   /sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/backlight/acpi_video1
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda1.device                   loaded active plugged   Crucial_CT480M500SSD1 1
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda2.device                   loaded active plugged   Crucial_CT480M500SSD1 2
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda-sda3.device                   loaded active plugged   Crucial_CT480M500SSD1 3
sys-devices-pci0000:00-0000:00:1f.2-ata1-host0-target0:0:0-0:0:0:0-block-sda.device                        loaded active plugged   Crucial_CT480M500SSD1
sys-devices-platform-serial8250-tty-ttyS1.device                                                           loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS1
sys-devices-platform-serial8250-tty-ttyS2.device                                                           loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS2
sys-devices-platform-serial8250-tty-ttyS3.device                                                           loaded active plugged   /sys/devices/platform/serial8250/tty/ttyS3
sys-devices-platform-thinkpad_acpi-rfkill-rfkill0.device                                                   loaded active plugged   /sys/devices/platform/thinkpad_acpi/rfkill/rfkill0
sys-devices-platform-thinkpad_acpi-sound-card1.device                                                      loaded active plugged   /sys/devices/platform/thinkpad_acpi/sound/card1
sys-module-configfs.device                                                                                 loaded active plugged   /sys/module/configfs
sys-module-fuse.device                                                                                     loaded active plugged   /sys/module/fuse
sys-subsystem-bluetooth-devices-hci0.device                                                                loaded active plugged   /sys/subsystem/bluetooth/devices/hci0
sys-subsystem-net-devices-enp0s25.device                                                                   loaded active plugged   Ethernet Connection I218-LM
sys-subsystem-net-devices-wlp3s0.device                                                                    loaded active plugged   Dual Band Wireless-N 7260
-.mount                                                                                                    loaded active mounted   /
boot-efi.mount                                                                                             loaded active mounted   /boot/efi
dev-hugepages.mount                                                                                        loaded active mounted   Huge Pages File System
dev-mqueue.mount                                                                                           loaded active mounted   POSIX Message Queue File System
run-user-0.mount                                                                                           loaded active mounted   /run/user/0
run-user-1000-gvfs.mount                                                                                   loaded active mounted   /run/user/1000/gvfs
run-user-1000.mount                                                                                        loaded active mounted   /run/user/1000
sys-fs-fuse-connections.mount                                                                              loaded active mounted   FUSE Control File System                                                                                                                
sys-kernel-config.mount                                                                                    loaded active mounted   Configuration File System                                                                                                               
sys-kernel-debug.mount                                                                                     loaded active mounted   Debug File System                                                                                                                       
tmp.mount                                                                                                  loaded active mounted   Temporary Directory                                                                                                                     
systemd-ask-password-console.path                                                                          loaded active waiting   Dispatch Password Requests to Console Directory Watch                                                                                   
systemd-ask-password-wall.path                                                                             loaded active waiting   Forward Password Requests to Wall Directory Watch                                                                                       
session-c1.scope                                                                                           loaded active running   Session c1 of user root                                                                                                                 
session-c2.scope                                                                                           loaded active running   Session c2 of user mcgoldrickm                                                                                                          
bluetooth.service                                                                                          loaded active running   Bluetooth service                                                                                                                       
dbus.service                                                                                               loaded active running   D-Bus System Message Bus                                                                                                                
getty@tty1.service                                                                                         loaded active running   Getty on tty1                                                                                                                           
kdm.service                                                                                                loaded active running   K Display Manager                                                                                                                       
kmod-static-nodes.service                                                                                  loaded active exited    Create list of required static device nodes for the current kernel                                                                      
NetworkManager.service                                                                                     loaded active running   Network Manager                                                                                                                         
ntpd.service                                                                                               loaded active running   Network Time Service                                                                                                                    
pdnsd.service                                                                                              loaded active running   proxy name server                                                                                                                       
polkit.service                                                                                             loaded active running   Authorization Manager                                                                                                                   
rtkit-daemon.service                                                                                       loaded active running   RealtimeKit Scheduling Policy Service                                                                                                   
systemd-backlight@backlight:acpi_video0.service                                                            loaded active exited    Load/Save Screen Backlight Brightness of backlight:acpi_video0                                                                          
systemd-backlight@backlight:acpi_video1.service                                                            loaded active exited    Load/Save Screen Backlight Brightness of backlight:acpi_video1                                                                          
systemd-backlight@backlight:intel_backlight.service                                                        loaded active exited    Load/Save Screen Backlight Brightness of backlight:intel_backlight                                                                      
systemd-hostnamed.service                                                                                  loaded active running   Hostname Service                                                                                                                        
systemd-journald.service                                                                                   loaded active running   Journal Service                                                                                                                         
systemd-logind.service                                                                                     loaded active running   Login Service                                                                                                                           
systemd-random-seed.service                                                                                loaded active exited    Load/Save Random Seed                                                                                                                   
systemd-remount-fs.service                                                                                 loaded active exited    Remount Root and Kernel File Systems
systemd-rfkill@rfkill0.service                                                                             loaded active exited    Load/Save RF Kill Switch Status of rfkill0
systemd-rfkill@rfkill1.service                                                                             loaded active exited    Load/Save RF Kill Switch Status of rfkill1
systemd-rfkill@rfkill2.service                                                                             loaded active exited    Load/Save RF Kill Switch Status of rfkill2
systemd-sysctl.service                                                                                     loaded active exited    Apply Kernel Variables
systemd-tmpfiles-setup-dev.service                                                                         loaded active exited    Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service                                                                             loaded active exited    Create Volatile Files and Directories
systemd-udev-trigger.service                                                                               loaded active exited    udev Coldplug all Devices
systemd-udevd.service                                                                                      loaded active running   udev Kernel Device Manager
systemd-update-utmp.service                                                                                loaded active exited    Update UTMP about System Boot/Shutdown
systemd-user-sessions.service                                                                              loaded active exited    Permit User Sessions
systemd-vconsole-setup.service                                                                             loaded active exited    Setup Virtual Console
udisks2.service                                                                                            loaded active running   Disk Manager
upower.service                                                                                             loaded active running   Daemon for power management
user@0.service                                                                                             loaded active running   User Manager for UID 0
user@1000.service                                                                                          loaded active running   User Manager for UID 1000
wpa_supplicant.service                                                                                     loaded active running   WPA supplicant
-.slice                                                                                                    loaded active active    Root Slice
system-getty.slice                                                                                         loaded active active    system-getty.slice
system-systemd\x2dbacklight.slice                                                                          loaded active active    system-systemd\x2dbacklight.slice
system-systemd\x2drfkill.slice                                                                             loaded active active    system-systemd\x2drfkill.slice
system.slice                                                                                               loaded active active    System Slice
user-0.slice                                                                                               loaded active active    user-0.slice
user-1000.slice                                                                                            loaded active active    user-1000.slice
user.slice                                                                                                 loaded active active    User and Session Slice
dbus.socket                                                                                                loaded active running   D-Bus System Message Bus Socket
dmeventd.socket                                                                                            loaded active listening Device-mapper event daemon FIFOs
lvmetad.socket                                                                                             loaded active listening LVM2 metadata daemon socket
systemd-initctl.socket                                                                                     loaded active listening /dev/initctl Compatibility Named Pipe
systemd-journald.socket                                                                                    loaded active running   Journal Socket
systemd-shutdownd.socket                                                                                   loaded active listening Delayed Shutdown Socket
systemd-udevd-control.socket                                                                               loaded active running   udev Control Socket
systemd-udevd-kernel.socket                                                                                loaded active running   udev Kernel Socket
dev-sda3.swap                                                                                              loaded active active    /dev/sda3
basic.target                                                                                               loaded active active    Basic System
bluetooth.target                                                                                           loaded active active    Bluetooth
cryptsetup.target                                                                                          loaded active active    Encrypted Volumes
getty.target                                                                                               loaded active active    Login Prompts
graphical.target                                                                                           loaded active active    Graphical Interface
local-fs-pre.target                                                                                        loaded active active    Local File Systems (Pre)
local-fs.target                                                                                            loaded active active    Local File Systems
multi-user.target                                                                                          loaded active active    Multi-User System
network.target                                                                                             loaded active active    Network
paths.target                                                                                               loaded active active    Paths
remote-fs.target                                                                                           loaded active active    Remote File Systems
slices.target                                                                                              loaded active active    Slices
sockets.target                                                                                             loaded active active    Sockets
sound.target                                                                                               loaded active active    Sound Card
swap.target                                                                                                loaded active active    Swap
sysinit.target                                                                                             loaded active active    System Initialization
timers.target                                                                                              loaded active active    Timers
systemd-tmpfiles-clean.timer                                                                               loaded active waiting   Daily Cleanup of Temporary Directories

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

113 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Offline

#10 2014-04-15 10:20:18

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: kde authorization (polkit and dbus driving me insane)

donmiguel wrote:

I was running kdm as root, then logging in as a regular user. I've now enabled the kdm systemctl service as per mariusmeyer's instructions, but it didn't change what happens when i insert a USB disk - same error as before.

I'm sorry but it's still not fully clear to me: do you say you enabled the kdm service and then you log in again as root and run kdm from there as before?
Or you enter directly in graphical environment kdm just after booting up and log in as a user from there?
(that's the problem when you replace showing the commands you used with human descriptions of what you did)
I see there are two sessions, c1 and c2, why?
Post the results of:
$ loginctl list-sessions
and
$ systemctl status kdm
$ systemctl status udisks2

Offline

#11 2014-04-15 14:24:26

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

no - originally, i was logging into the console as root, then when i wanted to use kde, i would type 'kdm' and type my non-root username and password into the kdm login prompt. not sure how i could show you that as the only command i was typing was 'kdm'...

Now, as mariusmeyer suggested, i have done the following (as root)

systemctl enable kdm
systemctl start kdm

then typed my (non-root) credentials into the kdm graphical login prompt

you can see two sessions because i am logged into the console as root (where i enabled kdm service) and logged into kde as a non-root user (uid 1000)

here's the output from the commands you asked for (more sessions now as i'm logged in remotely from work)

[root@mjollnir ~]#  loginctl list-sessions
   SESSION        UID USER             SEAT
        c1          0 root             seat0
        c2       1000 XXX      seat0
        c3          0 root             seat0
        c4       1000 XXX

4 sessions listed.
[root@mjollnir ~]# systemctl status kdm
â kdm.service - K Display Manager
   Loaded: loaded (/usr/lib/systemd/system/kdm.service; enabled)
   Active: active (running) since Mon 2014-04-14 20:06:44 BST; 19h ago
 Main PID: 428 (kdm)
   CGroup: /system.slice/kdm.service
           ââ428 /usr/bin/kdm -nodaemon
           ââ430 /usr/bin/X -br -novtswitch -quiet :0 vt7 -nolisten tcp -auth /var/run/xauth/A:0-7W6L7a

Apr 14 20:06:44 mjollnir systemd[1]: Started K Display Manager.
Apr 14 20:06:49 mjollnir kdm[434]: :0[434]: pam_unix(kde:session): session opened for user XXX by (uid=0)
[root@mjollnir ~]# systemctl status udisks2
â udisks2.service - Disk Manager
   Loaded: loaded (/usr/lib/systemd/system/udisks2.service; static)
   Active: active (running) since Mon 2014-04-14 20:06:50 BST; 19h ago
     Docs: man:udisks(8)
 Main PID: 548 (udisksd)
   CGroup: /system.slice/udisks2.service
           ââ548 /usr/lib/udisks2/udisksd --no-debug

Apr 14 20:06:50 mjollnir udisksd[548]: udisks daemon version 2.1.3 starting
Apr 14 20:06:50 mjollnir systemd[1]: Started Disk Manager.
Apr 14 20:06:50 mjollnir udisksd[548]: Acquired the name org.freedesktop.UDisks2 on the system message bus

can you see any problems here?

Offline

#12 2014-04-15 14:46:16

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: kde authorization (polkit and dbus driving me insane)

I don't see any problem at first glance from the outputs you posted.
But to be sure, could you reboot the machine directly to kdm (without first a login as root in a console) and log in as a user, with only this session active.
And try if you get the same error from Dolphin?
And if yes confirm that the error is the same, ie :

Error checking authorization: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.udisks2.filesystem-mount is not registered (polkit-error-quark, 0)

Offline

#13 2014-04-15 17:59:50

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

so i rebooted the machine and kdm came up on boot as expected. i logged in as my non-root user and plugged in a USB drive - exact same error from dolphin:
Error checking authorization: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Action org.freedesktop.udisks2.filesystem-mount is not registered (polkit-error-quark, 0)

then i tried adding a new user (useradd -m testuser) and logging in to kdm with the new user - exact same error.

finally, i tried reinstalling udisks2 (pacman -S udisks2) - exact same error.

i can't see anything helpful when i do

journalctl -r -u dbus
journalctl -r -u polkit

is there any way i can trace dbus and polkit?

Offline

#14 2014-04-15 18:55:03

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 296

Re: kde authorization (polkit and dbus driving me insane)

Maybe a silly suggestion, but have you tried to mount the usb drive from the console? Can you access it properly then?

Offline

#15 2014-04-15 19:20:30

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

not a silly question at all smile
i can mount the device as root:

[root@mjollnir dev]# mount /dev/sdb1 /mnt/usb
[root@mjollnir dev]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=6090576k,nr_inodes=1522644,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda2 on / type btrfs (rw,relatime,ssd,space_cache)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=21,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
tmpfs on /tmp type tmpfs (rw)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
configfs on /sys/kernel/config type configfs (rw,relatime)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=1218700k,mode=700)
tmpfs on /run/user/1001 type tmpfs (rw,nosuid,nodev,relatime,size=1218700k,mode=700,uid=1001,gid=1001)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1218700k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sdb1 on /mnt/usb type ext4 (rw,relatime,data=ordered)
[root@mjollnir dev]# 

not as my non-root user though, of course.

once it's mounted i can navigate to /mnt/usb dolphin and that works fine.

do you think it's worth uninstalling EVERYTHING? kde, polkit, dbus, udisks2 etc and reinstalling?

Offline

#16 2014-04-15 19:45:47

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

Well that was not one of my better ideas! Pacman -c -R dbus apparently gets rid of important things... I'll be back once I have reinstalled arch big_smile

Offline

#17 2014-04-15 19:50:34

mouseman
Member
From: Outta nowhere
Registered: 2014-04-04
Posts: 296

Re: kde authorization (polkit and dbus driving me insane)

Once you get the base done, install rsync and make a backup.

Its a lot quicker and easier that way than having to completely reinstall each time "you have an idea" wink.

Offline

#18 2014-04-15 19:54:15

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

Yeah good plan. Although to be honest it was so nonfunctional that I was considering a reinstall anyway. Ah well you live and learn!

Offline

#19 2014-04-15 22:48:44

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

ok everything reinstalled and mostly working! kde is still refusing to mount USB drives, but now the error is:

An error occurred while accessing 'ARCH_201404', the system responded: An unspecified error has occurred: Not authorized to perform operation

helpful!

Offline

#20 2014-04-15 23:19:01

donmiguel
Member
Registered: 2014-04-14
Posts: 12

Re: kde authorization (polkit and dbus driving me insane)

if it helps, i can mount the disk with

udisksctl mount -b /dev/sdb1

as my non-root user (have to enter my password though)
so i guess the problem is with kde authorization - i have no idea how that works though (or doesn't work, in this case)

Offline

#21 2014-04-16 08:45:20

berbae
Member
From: France
Registered: 2007-02-12
Posts: 1,304

Re: kde authorization (polkit and dbus driving me insane)

From your test of 'udisksctl mount' as a non root user, you clearly have a permission issue.
In an active logind session, you should have the right to mount a usb removable block device through udisks2, using the 'udisksctl mount' command without entering any password.
To show if the session is active, the output of:

loginctl show-session $XDG_SESSION_ID

should have a line with 'Active=yes'.

It could be useful to see also the output of:

udisksctl info -b /dev/sdb1

after plugging in the block device, and be sure it is sdb1 of course.

Though not yet the solution, it seems nevertheless better than before the complete re-installation (can you confirm it is the complete re-installation of Arch and not of KDE only though? to be sure nothing was kept from the previous installation).

I think you are now near the full solution; keep searching...

Offline

#22 2014-11-02 21:39:03

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 623

Re: kde authorization (polkit and dbus driving me insane)

Sorry for refreshing - have somebody come up with a solution? I have the same problem, and my XDG_SESSION_ID is ok, i have "Active=yes'.
Edit: sorry for refreshing, i solved my problem regarding usb disks and not being able to mount them. You could read my topic. I think that policies that are at fault, some guides on www are being wrong, are misleading.

Last edited by firekage (2014-12-26 01:28:34)

Offline

Board footer

Powered by FluxBB