You are not logged in.

#1 2011-07-06 14:12:15

DruKe
Member
Registered: 2011-07-06
Posts: 8

[SOLVED]libusb / Permission denied

Hey all. Complete newbie to Arch here.
I've always been 'spoon fed' things just working by using Ubuntu and Mint but thought I'd give Arch a whirl. It's been a learning process that's for sure!
What I'm running into is trying to use a sym link to a USB hard drive to my 'Pictures' folder and have Shotwell import photos to that.
When I run Shotwell from a prompt as myself, I get the following:

libusb couldn't open USB device /dev/bus/usb/001/009: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/008: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/003/002: Permission denied.
libusb requires write access to USB device nodes.

If I run it as root or sudo it, there are no problems and it can work just fine.

Shotwell can read the existing photos that are on the drive but cannot write to it.

I did add my user account to storage and camera thinking that may help but it did not.

Any help would be greatly appreciated!

Last edited by DruKe (2011-07-11 14:19:49)

Offline

#2 2011-07-06 14:13:51

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED]libusb / Permission denied

did you mount the usb drive using root account?


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2011-07-06 14:16:46

DruKe
Member
Registered: 2011-07-06
Posts: 8

Re: [SOLVED]libusb / Permission denied

They appear to be being mounted automatically as root, yes.

/dev/bus/usb

$ ls -la

total 0
drwxr-xr-x 7 root root 140 Jul  6 08:39 .
drwxr-xr-x 3 root root  60 Jul  6 08:39 ..
drwxr-xr-x 2 root root 160 Jul  6 08:45 001
drwxr-xr-x 2 root root  60 Jul  6 08:39 002
drwxr-xr-x 2 root root  80 Jul  6 08:39 003
drwxr-xr-x 2 root root  80 Jul  6 08:39 004
drwxr-xr-x 2 root root  60 Jul  6 08:39 005

Offline

#4 2011-07-06 14:21:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]libusb / Permission denied

Mount it in such a way so Shotwell will have write access: 'drwxr-xr-x' gives it to just the owner (root).

Offline

#5 2011-07-06 14:24:22

DruKe
Member
Registered: 2011-07-06
Posts: 8

Re: [SOLVED]libusb / Permission denied

I guess to be more specific then, how do I automatically mount USB devices (other hard drives, USB flash drives, iPod) so that I do not need to change the permissions each time?

Offline

#6 2011-07-06 14:31:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]libusb / Permission denied

DruKe wrote:

I guess to be more specific then, how do I automatically mount USB devices (other hard drives, USB flash drives, iPod) so that I do not need to change the permissions each time?

First change the permissions by hand to make sure it works for user.
How do you (auto)mount it now?

Offline

#7 2011-07-06 14:36:55

DruKe
Member
Registered: 2011-07-06
Posts: 8

Re: [SOLVED]libusb / Permission denied

Thanks for hanging with my karol! I did a:

/dev/bus/usb/001/

sudo chown root.storage ./009

Fired up Shotwell and it imported just fine.

So now that I know change the group to storage works, is there a way I can get all USB mass storage devices to mount as root.storage?

And right now, all I do is simply plug it in. I do not mount it manually at all.

Offline

#8 2011-07-06 14:40:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]libusb / Permission denied

DruKe wrote:

And right now, all I do is simply plug it in. I do not mount it manually at all.

But something does that for you. What DE / WM are you using?
I don't use automounting so I may not be able to help you here.

Offline

#9 2011-07-06 14:44:58

DruKe
Member
Registered: 2011-07-06
Posts: 8

Re: [SOLVED]libusb / Permission denied

I'm using Gnome 3 and Mutter.

Offline

#10 2011-07-07 19:32:49

DruKe
Member
Registered: 2011-07-06
Posts: 8

Re: [SOLVED]libusb / Permission denied

Anyone else have any ideas for me?

Offline

#11 2011-07-07 20:35:06

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [SOLVED]libusb / Permission denied

Not an idea, but I have a correction for you:

DruKe wrote:

They appear to be being mounted automatically as root, yes.

/dev/bus/usb

$ ls -la

total 0
drwxr-xr-x 7 root root 140 Jul  6 08:39 .
drwxr-xr-x 3 root root  60 Jul  6 08:39 ..
drwxr-xr-x 2 root root 160 Jul  6 08:45 001
drwxr-xr-x 2 root root  60 Jul  6 08:39 002
drwxr-xr-x 2 root root  80 Jul  6 08:39 003
drwxr-xr-x 2 root root  80 Jul  6 08:39 004
drwxr-xr-x 2 root root  60 Jul  6 08:39 005

These nodes have nothing to do with whether your devices are mounted or not. The 'mount' command will show you what's mounted where - removable devices are typically mounted under /media, but your configuration may differ.

Offline

#12 2011-07-07 21:35:09

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: [SOLVED]libusb / Permission denied

Isn't it a libgphoto2 problem? Try this solution: https://wiki.archlinux.org/index.php/Gphoto2#Libgphoto2.

Offline

#13 2011-07-08 13:00:57

DruKe
Member
Registered: 2011-07-06
Posts: 8

Re: [SOLVED]libusb / Permission denied

tomk wrote:

These nodes have nothing to do with whether your devices are mounted or not. The 'mount' command will show you what's mounted where - removable devices are typically mounted under /media, but your configuration may differ.

You caught me! Those are the USB root hubs yes, but the devices listed under the root hubs have the same permissions, those are the ones I had changed in earlier posts and it worked then. The USB hard disk mounted in media does have myuser.users listed as the owner.. So that would seem to be proper yes?

Lars Stokholm wrote:

Isn't it a libgphoto2 problem? Try this solution: https://wiki.archlinux.org/index.php/Gphoto2#Libgphoto2.

I did try this earlier as well but I don't think it really applied as I'm not even using a camera in this case..I was importing from a folder on my desktop. Thanks though!

Offline

#14 2011-07-11 14:19:16

DruKe
Member
Registered: 2011-07-06
Posts: 8

Re: [SOLVED]libusb / Permission denied

Well, not sure what fixed it but it is functioning now.
I did install the package pmount so that may have done it as well.

Thanks to all who helped out!

Offline

Board footer

Powered by FluxBB