Re: Permission problem

Jeremy McCumber <[email protected]> Tue, 24 Oct 2006 09:12:43 -0500
Newsgroups gmane.comp.multimedia.libnjb.user
Message-ID <[email protected]>
I'm not trying to knock libjnb at all, b/c I think it's one the best libs
ever, but I've honestly never gotten the new udev rules to work (Mandriva
'06). The directions in the install file are somewhat obscure and there's
very little elsewhere to lend assistance. 

I've tried using the nomad.rules file that comes with libnjb, but it's as if
doesn't even see it all when I plug in my nomad jukebox III. Tried adding
the file, editing the file, chmoding the file; still, nothing changes and
the permissions error persists.

In the end, it's just easier to sudo gnomad2. 

Just thought I'd let you know since the topic came up. If I ever it get it
working, I'll write up something a little more detailed. 
Jeremy

Linus Walleij <[email protected]> wrote: 
>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
>_______________________________________________
>Libnjb-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/libnjb-users
>
>
>
-- 
Registered Linux user #346571



-------------------------------------------------------------------------
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