LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 01-25-2010, 09:47 PM   #1
wufo
Member
 
Registered: Oct 2004
Posts: 209

Rep: Reputation: 15
setting permissions when USB devices plugged in


When I plug in a USB GPS device, using cypress_m8 module, is creates
/dev/ttyUSB0 with read/write permissions for owner,root, and group, dialout. My question is really just where are the rules for setting these permissions and how exactly are the owner and group names set when /dev/ttyUSB0 is created, i.e. a serial USB device is plugged in.

wufo
 
Old 01-25-2010, 10:03 PM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Try to edit (or create) the /etc/udev/rules.d/*-libsane.rules file.
 
Old 01-26-2010, 09:27 AM   #3
wufo
Member
 
Registered: Oct 2004
Posts: 209

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by quanta View Post
Try to edit (or create) the /etc/udev/rules.d/*-libsane.rules file.
This file does not exist. I checked /etc/udev/rules.d and neither of the two files:
70-persistent-cd.rules 70-persistent-net.rules

has a rule for USB serial.

So, how does system know what the default for ttyUSB0 is?

wufo
 
Old 01-26-2010, 11:16 AM   #4
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
The files are in /lib/udev/rules.d also the libsane stuff is for scanners. Do not edit the rules in /lib/udev copy the rule you want to edit to /etc/udev/rules.d and edit the copy.
 
  


Reply



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
Kooka: devices have to be already plugged in newbiesforever LinuxQuestions.org Member Success Stories 0 08-22-2009 01:45 PM
Setting access rights on USB devices. Mike Davies Linux - Hardware 4 11-21-2008 06:56 PM
I got a USB hub, plugged it and my devices are not recognized Enkidux Linux - Newbie 8 04-09-2008 03:06 PM
How to detect programatically if a USB device is is plugged-in / plugged out? franc Linux - Software 3 02-01-2007 04:01 AM
USB devices only recognized with lsusb after plugged in reboot arnostienen Slackware 1 01-29-2004 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:05 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
Open Source Consulting | Domain Registration