LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-17-2008, 01:35 AM   #1
rob.rice
Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 797

Rep: Reputation: 119Reputation: 119
/dev/usbdev permisstions


How do I get user premisstions for my usb devices
without setting them as root on a as needed bases
this is a real pain in the ass
each time I pluge in my camera I have to find what device it's on
chmod it before gphoto2 can even find it for a user other than root
the same for my scanner
 
Old 03-17-2008, 05:25 AM   #2
mrpaulin
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
usb permissions

Try one of these solutions sugested by rada Hards in another forum

Some suggestions:
1. Change the rights on the particular node (whichever /proc/bus/usb/X/Y entry
corresponds) to +w. See the manual entry for chmod. You can probably do this
automagically with an entry in /sbin/hotplug. THIS IS INSECURE UNLESS YOU ARE
THE ONLY PERSON WITH ACCESS TO THE SYSTEM.
2. Change the mount options for usbdevfs, using the devmode option:
mount /proc/bus/usb -o remount,devmode=0666
(see the manual entry for mount for more information). THIS IS EVEN MORE
INSECURE THAN THE FIRST OPTION.
3. Run the nomad utility suid root. THIS IS VERY DANGEROUS IF THERE IS A BUG
IN THE NOMAD UTILITY. (man chmod, s option)
4. Modify pam configuration (read the manual entry and probably the system
admin's guide) to configure the particular device node to belong to you when
you log in, if the device is connected. IF YOU MISCONFIGURE PAM, YOU MAY NOT
BE ABLE TO LOG IN.

I'd probably do 2, because I control my laptop, and it is easy. Your situation
may vary, and you need to assess the risks.

Brad
 
Old 03-17-2008, 07:03 AM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
I believe setting a udev rule and adding your user to the appropriate group is the way to go. I'm no expert on udev rules but searching the forum should give results.
 
Old 03-17-2008, 11:16 AM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,973

Rep: Reputation: Disabled
Quote:
Originally Posted by rob.rice View Post
How do I get user premisstions for my usb devices
without setting them as root on a as needed bases
this is a real pain in the ass
each time I pluge in my camera I have to find what device it's on
chmod it before gphoto2 can even find it for a user other than root
the same for my scanner
Did you install libgphoto2 from SlackBuilds.org? If so, the permissions should be set correctly.
Are you in the scanner, lp, and plugdev groups?
 
Old 03-17-2008, 12:01 PM   #5
rob.rice
Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 797

Original Poster
Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by rworkman View Post
Did you install libgphoto2 from SlackBuilds.org? If so, the permissions should be set correctly.
Are you in the scanner, lp, and plugdev groups?
as a habit I install almost all my non distro software from source
I built libgphoto2 from source
adding my user to the groups seems like the best option
so far

thank you and thank you to all the people who replied
 
Old 03-17-2008, 12:13 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,973

Rep: Reputation: Disabled
Quote:
Originally Posted by rob.rice View Post
as a habit I install almost all my non distro software from source
I built libgphoto2 from source
adding my user to the groups seems like the best option
so far
Have a look at the postinstall script and other associated files with the libgphoto2 build from SlackBuilds.org then - it should set you in the right direction.
 
Old 03-17-2008, 11:50 PM   #7
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,298

Rep: Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722Reputation: 722
A note about mrpaulin's advice -- Slackware doesn't have PAM, so you can safely disregard that part. I think rworkman's advice is probably pretty solid.
 
  


Reply

Tags
permissions, usb


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 11:27 AM
/dev/audio, /dev/dsp and /dev/mixer missing in Debian Etch 1337_penguin Debian 2 04-11-2007 12:33 PM
/dev/cdrom links to /dev/sg0 instead of /dev/sr0 -why? Yalla-One Slackware 3 10-01-2006 08:02 PM
/dev/tty0, /dev/tty1, /dev/tty10...and so on...which should be used for a device ??? b0nd Slackware 2 04-02-2006 09:14 AM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 08:11 PM


All times are GMT -5. The time now is 07:19 AM.

Main Menu
Advertisement
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