LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 08-01-2006, 10:13 AM   #1
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Rep: Reputation: 0
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!
 
Old 08-01-2006, 10:19 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
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.
 
Old 08-01-2006, 10:22 AM   #3
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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?
 
Old 08-01-2006, 10:49 AM   #4
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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" ?)
 
Old 08-01-2006, 10:57 AM   #5
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 08-01-2006, 11:01 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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.
 
Old 08-02-2006, 08:11 AM   #7
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for the help! I will give it a try.

Cheers!
 
Old 08-02-2006, 08:24 AM   #8
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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".
 
Old 08-02-2006, 08:44 AM   #9
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
what is the software? what format is it in? are there an ydocs with it?
 
Old 08-02-2006, 12:20 PM   #10
Richpo
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Capabilities of *BSD username17 *BSD 1 11-04-2005 06:04 PM
How do you make the user have root capabilities??? chutsu Linux - General 2 09-05-2004 11:30 AM
apt-get capabilities heathpitts Debian 8 12-10-2003 06:00 PM
good capabilities? zexter Libranet 2 11-11-2003 12:23 AM
re: fax capabilities? ergo_sum Linux - Newbie 1 11-07-2003 09:26 PM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration