Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
08-01-2006, 10:13 AM
|
#1
|
|
LQ Newbie
Registered: Jul 2006
Posts: 10
Rep:
|
Capabilities: <available only to root>?
I see this message (see Subject) plastered all over these forums as people do listings of the devices in their machines. But nowhere do I see anyone explain why this message exists and how it can be "fixed?"
I recently installed an NEC PCI card to get 4 USB 2.0 ports in our system. Looking at three PCI entries for this NEC card, I see this "Capabilities" message. And while the message doesn't particularly bother me, what does bother me is that root is the only user that can access these USB ports. What gives? Is there anything I can do to change the permissions on something so all other users have access to this PCI card and its USB ports?
Thanks!
|
|
|
|
08-01-2006, 10:19 AM
|
#2
|
|
Moderator
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,505
Rep: 
|
All users can make use of the card. The message you listed indicates that regular users cannot see its list of 'Capabilities' via lspci because it requires hardware-level access only available to root. Rest assured, regular users can still plug things into those USB ports and use them.
|
|
|
|
08-01-2006, 10:22 AM
|
#3
|
|
LQ Newbie
Registered: Jul 2006
Posts: 10
Original Poster
Rep:
|
Thank you for the clarification!
However, when I run the software that came with a third party USB device, I get a nasty error about the device being unavailable. When I run the software as root everything works just fine. I had attributed it to this Capabilities message but you're saying that's not the case. Any thoughts?
|
|
|
|
08-01-2006, 10:49 AM
|
#4
|
|
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522
Rep:
|
maybe the software is a script or something that runs other programs like lspci etc. and the script will need to run under the uid of root in order to execute those programs?
just a guess since yo udidn't post the error message (any say "permission denied" ?)
|
|
|
|
08-01-2006, 10:57 AM
|
#5
|
|
LQ Newbie
Registered: Jul 2006
Posts: 10
Original Poster
Rep:
|
No, I'm getting "could not claim interface 0: Operation not permitted"
Could it be related to the two "driver" files that I had to copy into /etc/hotplug/usb? Both files belong to root.root and have permissions of 755.
|
|
|
|
08-01-2006, 11:01 AM
|
#6
|
|
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522
Rep:
|
yes that is your problem, 755 is rwxr_xr_x so the owner (root can write to it, but no-one else can)
i would NOT reccomend making it writable to everyone, instead you could create a group called USB and chgrp those files to have USB as their group, and add yourself into the USB group then set permissions as 775. Just my 2 pence worth
Last edited by ethics; 08-01-2006 at 11:04 AM.
|
|
|
|
08-02-2006, 08:11 AM
|
#7
|
|
LQ Newbie
Registered: Jul 2006
Posts: 10
Original Poster
Rep:
|
Thanks for the help! I will give it a try.
Cheers!
|
|
|
|
08-02-2006, 08:24 AM
|
#8
|
|
LQ Newbie
Registered: Jul 2006
Posts: 10
Original Poster
Rep:
|
Since I am the only user on this machine, I tried changing the permissions to 777. Unfortunately this did not fix the problem and I still getting the message about "Operation not permitted".
|
|
|
|
08-02-2006, 08:44 AM
|
#9
|
|
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522
Rep:
|
what is the software? what format is it in? are there an ydocs with it?
|
|
|
|
08-02-2006, 12:20 PM
|
#10
|
|
LQ Newbie
Registered: Jul 2006
Posts: 10
Original Poster
Rep:
|
The software consists of a C library that gets linked into our main application. And there were obviously two files supplied which were the USB drivers that were put into /etc/hotplug/usb (mentioned earlier). The hardware plugs into the USB port and provides a low-level hardware diagnostic interface (JTAG) to an evaluation processor board.
As I mentioned earlier, everything works fine as long as you are root. So I'm guessing that there's nothing wrong with the software supplied by the vendor but this has something to do with access to the NEC USB card that we're trying to go through to get to the external hardware.
And I've been in talks with the vendor tech folks but haven't received anything useful as of yet.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:47 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|