Re: Permission problem
Linus Walleij <[email protected]> Tue, 24 Oct 2006 09:24:40 +0200 (CEST)
| Newsgroups | gmane.comp.multimedia.libnjb.user |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 24 Oct 2006, Jacek Jablonski wrote: > Hi! > When running gnomad2 as root, everything is ok. I can access and copy > music to my device. But it doesn't work for user. There is an error: > usb_set_configuration: Permission denied. I don't know what is the > proper configuration after /etc/hotplug support has disappeared. I > have arch linux and I use udev 103. Have you read the INSTALL file? Linux udev hotplugging ---------------------- Newer Linux distributions have dropped support for the old hotplug system and rely solely on udev, and rules stored below /etc/udev/rules.d to handle permissions and actions on device connections. It's quite solid but the whole thing is rather shaky when it comes to such things as custom devices handled solely by libusb, which is what libnjb and for example SANE backends use. The nomad.rules file that comes with libnjb can be used as a starter. First you need a crazy rule that creates a device node in the /dev/bus/usb hierarchy whenever any USB device is connected. The script has this at the top, you can comment it in if your distribution does not already create these device nodes. Then libusb need to be patched to recognize this hierarchy. The 0.1.12 version is the first which is properly fixed. The script sets the device access to "666" which is rather nasty (not that big security issue, unless you think someone will break into your jukebox) some systems prefer to let PAM do this by placing a configuration file in /etc/security/ somewhere. See the Fedora Extras SRPM source package in case you're interested in how it is handled there. Linus ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642