You are not logged in.

#1 2012-04-05 18:54:11

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

USB mounting without root

Hi
I tried probably everything and I don't know why it no working.

I have udiskie and I want mount my device without logged on root. If I run pcmanfm as root everything mount OK. But I want mount as normal user.

Here is my :
.xinitrc

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
udiskie &
exec ck-launch-session dbus-launch openbox-session

/etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla (this file and directory i can see only as root).I added as much lines, becouse I hope this be help...

[Storage Permissions]
 Identity=unix-group:storage
 Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
 ResultAny=yes
 ResultActive=yes
 ResultInactive=no
[Local Users]
 Identity=unix-group:storage
 Action=org.freedesktop.udisks.*
 ResultAny=yes
 ResultInactive=no
 ResultActive=yes
  [Storage Permissions]
 Identity=unix-group:scanner
 Action=org.freedesktop.udisks.filesystem-mount;org.freedesktop.udisks.drive-eject;org.freedesktop.udisks.drive-detach;org.freedesktop.udisks.luks-unlock;org.freedesktop.udisks.inhibit-polling;org.freedesktop.udisks.drive-set-spindown
 ResultAny=yes
 ResultActive=yes
 ResultInactive=no
[Local Users]
 Identity=unix-group:scanner
 Action=org.freedesktop.udisks.*
 ResultAny=yes
 ResultInactive=no
 ResultActive=yes
$ groups rlk120
disk network audio optical storage power users scanner

Please, help me...

Offline

#2 2012-04-05 20:33:59

technophile
Member
Registered: 2012-04-05
Posts: 8

Re: USB mounting without root

According to the archwiki, pcmanfm can have automount support through udisks and dbus. Is there a specific reason your trying to use udiskie?

Offline

#3 2012-04-05 20:54:44

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: USB mounting without root

You do not need to use both the pkla file AND consolekit. However the problem may be that you are starting udiskie before launching consolekit:

https://wiki.archlinux.org/index.php/Ud … mmended.29

Offline

#4 2012-04-05 21:00:30

examon
Member
Registered: 2011-05-07
Posts: 208

Re: USB mounting without root

I'm using devmon for automounting and it works really great. Install it and put this into your ~/.xinitrc

exec ck-launch-session dbus-launch bash -c "devmon & openbox-session"

Offline

#5 2012-04-06 07:19:30

xorgx3
Member
From: Poland
Registered: 2011-11-29
Posts: 197

Re: USB mounting without root

Great, helps :

exec ck-launch-session dbus-launch bash -c "udiskie & openbox-session"

and remove pkla file smile

Offline

Board footer

Powered by FluxBB