Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 10-13-2004, 03:11 PM   #1
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

Old 10-14-2004, 01:03 AM   #2
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, 02:19 AM   #3
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

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.


Old 10-14-2004, 04:05 AM   #4
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!



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 01:30 PM
can I set ip address to automatic in Mandrake 10? virtthemaest Linux - Networking 3 08-20-2004 07:30 AM
permission on automounted device? pablowablo Linux - Newbie 3 08-07-2004 10:42 PM
HD device permission ce11 Linux - Newbie 5 07-18-2004 01:00 AM
Cannot set write permission naveedbs Linux - Newbie 2 09-13-2003 11:54 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:26 AM.

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