You are not logged in.

Announcement

Due to heavy spamming of forums registration is going in stages. If you wish to register as a new user with ArchBang Forums, first register and then send an e-mail to: archbangforums at gmail dot com. It should contain the problem you want to discuss or some other AB related content. You will be promoted from registering member with no posting rights to new member with posting rights after that. If your mail is ignored you haven't fulfilled the requirements.

#1 2012-05-07 14:57:01

pablokal
Administrator
From: Nijmegen, Holland
Registered: 2010-10-12
Posts: 2,619
Website

Howto deal with permission/mounting issues after Udisks update

A short vent of evil Udisks default policy of having to enter a password to mount a partition when in a GUI file manager. I boot the desktop up and if I open thunar, I should be able to open my music partition without getting prompted for a freakin root password. In the past I have simply edited /usr/share/polkit-1/actions/org.freedesktop.udisks.policy and under internal drive changed it to yes active to avoid the annoying situation. So I get the latest updates and discover we now have org.freedesktop.udisks2.policy which is now the new default file and just as annoying.
could simply edit that file, but be stuck with each time an update comes along it gets rewritten to default. Zomg super annoying! As a desktop user I should have access to my partitions without having to jump through hoops. So I browsed around and on the archwiki found a simple solution, Override that evil thing!

Check if you are in the storage group:
Do

groups paul

replace paul with your username
to find out if you are in storage; if not

groupadd storage
gpasswd -a paul storage

(replace paul with your username)
Then create this file (being outside the /home environment you have to do this as root):

#nano /etc/polkit-1/localauthority/50-local.d/10-storage-group-mount-override.pkla

and put in that file

[storage group mount override]
Identity=unix-group:storage
Action=org.freedesktop.udisks2.filesystem-mount-system
ResultAny=yes
ResultInactive=yes
ResultActive=yes

Ctrl+o and enter to write the nano file and ctrl+x and enter to close nano.

If you already have a 10-udiks.pkla file just edit to

org.freedesktop.udisks2.filesystem-mount-system

in stead of 

org.freedesktop.udisks.filesystem-mount-system

source: http://www.sabayon.org/article/argh-udi … anity-back

If  you have another pkla file that overrules your new pkla file in
/etc/polkit-1/localauthority/50-local.d/ it may be necessary to change "udisks" to "udisks2"  there too.

This is also related: http://bbs.archbang.org/viewtopic.php?pid=14243#p14243
Check this out if this al doesn't solve the problem for you.

Another permission error regarding mounting relates to a slim update that has consequences  for polkit; so also see
http://bbs.archbang.org/viewtopic.php?id=2744


Getting your questions answered here at ArchBang Forums
Please! Always give hardware info, if there is a chance that 's relevant: #lspci -vnn
Quote: What I have learnt from Linux is to minimize dependencies and functionalities for greater independence.
On Arch(bang) and Openbox: http://stillstup.blogspot.com/

Offline

Board footer

Powered by FluxBB