Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
automount as non privileged user with udisks-glue?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1655

PostPosted: Sat Jan 26, 2013 1:01 pm    Post subject: automount as non privileged user with udisks-glue? Reply with quote

Greetings all I am having trouble automounting USB as non privileged user with udisks-glue.

First off I have compiled: ntfs-g3 with and without external-fuse.
kernel ntfs as module and not in use

Next:
I have a file in /etc/local.d/
that simply contains
Code:
udisks-glue --config /etc/udisks-glue.conf


when I plug in a usb drive (vfat)
It gets auto mounted but only root can access it.

I have a /etc/polkit-1/localauthority/50-local.d/10-udisks.pkla
Code:
Users in group wheel can play with udisks]
Identity=unix-group:wheel
Action=org.freedesktop.udisks.*
ResultAny=yes
ResultInactive=yes
ResultActive=yes



I can mount manually as non root with:
Code:
udisks --mount /dev/sdb1 --mount-options rw,noatime


I have a simple /etc/udisks-glue.conf for testing:
Code:
   filter disks {
           optical = false
           partition_table = false
           usage = filesystem
       }

       match disks {
           automount = true
           automount_options = sync
       }




I have tried removing
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
or setting everything to yes for testing?
Any thoughts appreciated.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sat Jan 26, 2013 3:33 pm    Post subject: Reply with quote

Aside from just swallowing the pill and using consolekit....

Since 0.106, polkit isn't using pkla files.
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sat Jan 26, 2013 7:33 pm    Post subject: Re: automount as non privileged user with udisks-glue? Reply with quote

turtles wrote:
Next:
I have a file in /etc/local.d/
that simply contains
Code:
udisks-glue --config /etc/udisks-glue.conf


udisks-glue should be running as your user, not root which is probably the case here
_________________
The End of the Internet!
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1655

PostPosted: Sun Jan 27, 2013 9:28 pm    Post subject: Reply with quote

Thanks truc I added it to my openbox autostart.sh and got rid of the file in local.d
now if I am in openbox it will auto mount and I have permissions.

The problem of working when not in a x session remains.
That narrows it down to a udisks-glue problem running as root.
how do you debug udisks-glue?
/usr/lib/debug/usr/bin/udisks-glue.debug
is a bin file and I cant access it.

VoidMage:
Can Consolekit automount any removal device so any user can use it?
I am not opposed to using consolkit in fact I am running it in my default runlevel on my laptop.
Do you know of a way to debug consolkit? I just figured the kit stuff is not really designed for laptops.

VoidMage wrote:
Since 0.106, polkit isn't using pkla files.

Consolekit or Polkit configs went to some sort of java xml looking files that are in /etc/dbus-1/system.d ?
so nothing goes in
/etc/polkit-1/localauthority/50-local.d ?
I see a java file :
/etc/polkit-1/rules.d/50-default.rules

I noticed if I remove the file:
/usr/share/polkit-1/actions/org.freedesktop.udisks.policy
udisks-glue would not work.

I made a copy of that file and changed everything "yes"
I will test if that helps.
Thanks
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum