View previous topic :: View next topic |
Author |
Message |
turtles Veteran
Joined: 31 Dec 2004 Posts: 1655
|
Posted: Sat Jan 26, 2013 1:01 pm Post subject: automount as non privileged user with udisks-glue? |
|
|
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 |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Sat Jan 26, 2013 3:33 pm Post subject: |
|
|
Aside from just swallowing the pill and using consolekit....
Since 0.106, polkit isn't using pkla files. |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Sat Jan 26, 2013 7:33 pm Post subject: Re: automount as non privileged user with udisks-glue? |
|
|
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 |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1655
|
Posted: Sun Jan 27, 2013 9:28 pm Post subject: |
|
|
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 |
|
|
|