[Override udisks2 filesystem-mount-system rule]
Identity=unix-user:myusername
Action=org.freedesktop.udisks2.filesystem-mount-system
ResultAny=auth_admin
ResultInactive=auth_admin
ResultActive=yes
This will allow mounting filesystems on devices that are recognized/marked as internal and on internal disks which have not been mounted in fstab, for some systems this may have security implications, but since the user allowed to do so is only one, and on _my_ system I always have all partitions mounted this is not a problem.
I have only overridden the part that matters for me, which is the "ResultActive", the others are exactly the same as the default permissions as I don't know what will happen if they are omitted here (probably the result will be no instead of auth_admin).
$ spacefm
Automount: /usr/bin/udisksctl mount -b /dev/sdd1 -o 'noexec,nosuid,noatime'
==== AUTHENTICATING FOR org.freedesktop.udisks2.filesystem-mount ===
Authentication is required to mount /dev/sdd1
Authenticating as: John Doe,,,4810520,099105413 (bruno321)
Password:
==== AUTHENTICATION COMPLETE ===
@bruno321: This would be a more secure approach which limits the access to udev2 to the mounting functions, as proposed in the wiki. Additionally the user needs to be member of the 'wheel' group.
[Mount a system-internal device]
Identity=unix-group:wheel
Action=org.freedesktop.udisks2.filesystem-mount-system
ResultActive=yes
xorgx3 wrote:Problem returned to me. Probably after kernel upgrade. Anybody help?
It also returned to me, doing this fixed it here:
This doesn't work for me. That is, if I start with exec startfluxbox, I still have the same problem.
And I don't want to apply xsmile's fix which R00KIE points out as dangerous... How can I solve this?
FWIW, my problem is with spacefm, not pcmanfm.
]]>I solved it by modifying this file:
/etc/polkit-1/localauthority/50-local.d/50-filesystem-mount-system-internal.pklaYou can refer to the wiki entry (https://wiki.archlinux.org/index.php/Ud … ormal_user) for more info.
Basically you need to replace 'udisks' with 'udisks2':
[Mount a system-internal device] Identity=* Action=org.freedesktop.udisks2.* ResultActive=yes
This should fix all mounting problems.
That is too broad and will allow things like org.freedesktop.udisks2.modify-device-system which is what is required to delete partitions, it can be dangerous if some program is not working properly and authentication would serve as a last line of defense, to make it worse you grant everyone with an active session that privilege.
]]>Problem returned to me. Probably after kernel upgrade. Anybody help?
It also returned to me, doing this fixed it here:
]]>I solved it by modifying this file:
/etc/polkit-1/localauthority/50-local.d/50-filesystem-mount-system-internal.pklaYou can refer to the wiki entry (https://wiki.archlinux.org/index.php/Ud … ormal_user) for more info.
Basically you need to replace 'udisks' with 'udisks2':
[Mount a system-internal device] Identity=* Action=org.freedesktop.udisks2.* ResultActive=yes
This should fix all mounting problems.
Great! That just solves my problem. Thanks!
]]>You can refer to the wiki entry (https://wiki.archlinux.org/index.php/Ud … ormal_user) for more info.
Basically you need to replace 'udisks' with 'udisks2':
]]>Later I was intsatlled gvfs 1.10.1-3 and udisks again.
Later I did this https://wiki.archlinux.org/index.php/Ud … ormal_user and this https://wiki.archlinux.org/index.php/PC … ormal_user
Next I changed /usr/share/polkit-1/actions/org.freedesktop.udisks.policy file and replaced "auth_admin_keep" with "yes" for internal devices.
Next I changed /etc/slim.conf line :
login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
Next I changed ~/.xinitrc and it is only :
#!/bin/sh
exec dbus-launch openbox-session
Next I logout and log in again.
Now everything works, even cd automount, external devices automount etc.
]]>I don't know whats happened, but I have the same, but me not working...
EDIT:
Ok, I was able to fix themThanks all.
How did you fix the problem?
I have the same issue with Thunar in XFCE.
EDIT:
Ok, I was able to fix them
Thanks all.
]]>I was downgrading my gvfs, but it isn't working (i dont know why). How version do you have?
my xinitrc:
#!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) exec ck-launch-session dbus-launch bash -c "udiskie & openbox-session"
Now pcmanfm says only "not authorized", and i can't fix them.
gvfs-1.10.1-3-i686.pkg.tar.xz & remove udisks2 too
#pacman -R udisks2
my xinitrc
exec ck-launch-session dbus-launch icewm-session