LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-13-2004, 02:11 PM   #1
mrosati
Member
 
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Rep: Reputation: 15
Question automatic set permission to device at boot


hi all.
i use xsane to make my scanner work. i can use it through libusb. i have managed to use the scsanner but i have to change permission to /proc/bus/usb/002/002 to use it when i log as normal user.
is there a way to automatically set permission to a device (/proc/bus/usb/002/002) at boot?

thank you

Matteo
 
Old 10-14-2004, 12:03 AM   #2
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Gentoo may have a similar mechanism ( I don't know ), but in Redhat you would edit the file /etc/security/console.perms
This changes the file permissions on selected devices for whoever logs into the console.
 
Old 10-14-2004, 01:19 AM   #3
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 588

Rep: Reputation: 45
Dear Matteo,

which kernel do you use? Do you have scanner drivers in kernel? There is a quick way to change the USB permissions on 2.6 kernel. In your /etc/fstab you should have a line like

usbfs /proc/bus/usb usbfs defaults,devmode=0666 0 0

the option devmode gives everyone the read-write access to all usb devices. But beware, there was a bug in kernels < 2.6.8 so it did not work. There is a better but a bit more complicated way of doing it, using hotplug.

Things may be different, though, if you have corresponding kernel drivers installed.

Best,

Ott
 
Old 10-14-2004, 03:05 AM   #4
mrosati
Member
 
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Original Poster
Rep: Reputation: 15
thank you! in fact my kernel is a 2.6.8-r8 and it works fine with your help! bye!

Matteo
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
automatic driver load & device permissions xtravar Linux - Hardware 0 06-17-2005 12:30 PM
can I set ip address to automatic in Mandrake 10? virtthemaest Linux - Networking 3 08-20-2004 06:30 AM
permission on automounted device? pablowablo Linux - Newbie 3 08-07-2004 09:42 PM
HD device permission ce11 Linux - Newbie 5 07-18-2004 12:00 AM
Cannot set write permission naveedbs Linux - Newbie 2 09-13-2003 10:54 AM


All times are GMT -5. The time now is 12:00 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