Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

udiskie and user permissions

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

udiskie and user permissions

  • Quote

Post by mikegpitt » Tue May 17, 2011 12:08 am

Following the removal of hal from my system I installed udiskie, but things aren't working as they used to. One issue I'm having is that only root running udiskie seems to have the correct permissions to mount a device.

Code: Select all

$ udiskie

failed to mount device /org/freedesktop/UDisks/devices/sdb1: org.freedesktop.UDisks.Error.PermissionDenied: Not Authorized
My user is in the usb and plugdev groups. Not sure what else to check. Any ideas?

Code: Select all

$ groups     
wheel audio cdrom video games cdrw usb users vboxusers plugdev mikeg vmware wireshark
Top
javeree
Guru
Guru
Posts: 465
Joined: Sun Jan 29, 2006 5:17 pm

  • Quote

Post by javeree » Tue May 17, 2011 7:35 am

did you install and start consolekit ? udiskie needs to run within a consolekit session to assign usage of a usb device to a specific session (and throuhg that to the user owning the session)
Top
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

  • Quote

Post by mikegpitt » Tue May 17, 2011 1:54 pm

javeree wrote:did you install and start consolekit ? udiskie needs to run within a consolekit session to assign usage of a usb device to a specific session (and throuhg that to the user owning the session)
This is a good thought, although I think it is running. I didn't place consolekit in any runlevel, so I figured I'd start it up manually, but get this:

Code: Select all

# /etc/init.d/consolekit restart
 * Starting ConsoleKit daemon ...
 * start-stop-daemon: /usr/sbin/console-kit-daemon is already running                                                                          [ !! ]
 * ERROR: consolekit failed to start
ps does see it running though:

Code: Select all

# ps -aux | grep -i console-kit
root     23719  0.0  0.1  27240  2944 ?        Sl   May16   0:00 /usr/sbin/console-kit-daemon --no-daemon
Although, I don't see it listed as starting in rc-status, despite the message above:

Code: Select all

 # rc-status 
Runlevel: default
 net.wlan0                                                                                                                              [  started  ]
 syslog-ng                                                                                                                              [  started  ]
 vixie-cron                                                                                                                             [  started  ]
 dbus                                                                                                                                   [  started  ]
 net.eth0                                                                                                                               [ inactive  ]
 cupsd                                                                                                                                  [  started  ]
 udev-postmount                                                                                                                         [  started  ]
 cpufreqd                                                                                                                               [  started  ]
 netmount                                                                                                                               [  started  ]
 acpid                                                                                                                                  [  started  ]
 hald                                                                                                                                   [  started  ]
 xdm                                                                                                                                    [  started  ]
 laptop_mode                                                                                                                            [  started  ]
 local                                                                                                                                  [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 udev-mount                                                                                                                             [  started  ]
 xdm-setup                                                                                                                              [  started  ]
Dynamic Runlevel: manual
 mysql                                                                                                                                  [  started  ]
 apache2                                                                                                                                [  started  ]
I also tried to manually start it as root, and it forked to the background without error. No change on mounting a USB stick as a user though.
Top
javeree
Guru
Guru
Posts: 465
Joined: Sun Jan 29, 2006 5:17 pm

  • Quote

Post by javeree » Wed May 18, 2011 12:16 pm

Well, first of all, I see you are still running hald. At least try tohave that service stopped.

Next, I did not really mean starting the consolekit daemon, but instead making sure that whenever you log in or switch between users, this is announced to the consolekit daemon.

E.g. I am currently running xfce, and changed
/usr/share/xsessions/xfce.desktop to include
Exec=ck-launch-session startxfce4

If this is needed, depends on your complete environment. E.g. I believe that it is required when starting sessions from xdm, but that kdm and gdm do the equivalent of 'ck-launch-session' automatically.
Top
mikegpitt
Advocate
Advocate
User avatar
Posts: 3224
Joined: Sat May 22, 2004 6:49 pm

  • Quote

Post by mikegpitt » Sun May 22, 2011 5:12 pm

I think you are onto something here... I use xdm and fvwm as my wm. I use the file /etc/env.d/90xsession to start fvwm by default system wide.

The contents are currently:

Code: Select all

XSESSION="fvwm"
I tried to add ck-launch-session here, but it wouldn't start fvwm. There was no corresponding file in /usr/share/xsessions/, so I decided to create one manually, hoping that xdm would somehow see this, but this also didn't work.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic