LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-07-2011, 06:19 AM   #1
Lexus45
Member
 
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 361
Blog Entries: 3

Rep: Reputation: 48
Scanner HP ScanJet 2400c. Chmod /dev/bus/usb/...


Hello everybody.

This thread is not about how to make HP ScanJet 2400c working. It works fine after some searching on the net.

The only problem is as follows.after each system reboot I have to manually correct chmod for the /dev/bus/usb/xxx/xxx (corresponding to the scanner) to let the scanner work:
Code:
support@manager77-1-desktop:~$ lsusb 
...
Bus 007 Device 004: ID 03f0:0a01 Hewlett-Packard ScanJet 2400c
...
Code:
sudo chmod 666 /dev/bus/usb/007/004
The solution of changing the permissions I've read in the tutorial found by Google.
I only dislike that I have to do this each time the PC was rebooted. And what's important - the device ID changes after reboot, so the solution of adding 'sudo chmod ...' somewhere to /etc/rc.d/rc.local will not work.
Code:
support@manager77-1-desktop:~$ ll /dev/bus/usb/007/004
crw-rw-rw- 1 root root 189, 771 2011-06-06 10:10 /dev/bus/usb/007/004
The PC is not mine, it's in another city, and each time the manager writes/calls me to help him (to do this), as he doesn't have admin (root) permissions.

Is there any solution to fix it for ever?

I think I must look to the groups. But I'm not sure.

Last edited by Lexus45; 06-07-2011 at 08:17 AM.
 
Old 06-07-2011, 09:14 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Initial device permissions are generally handled by udev. You'll have to find the one that affects your scanner and modify it, or create a new one to override it.

http://www.reactivated.net/writing_udev_rules.html

It seems odd that the existing rules wouldn't at least have a "scanner" group or similar already set up for it though. The udev rules provided by the debian libsane package do. I suggest you check to see that everything is up-to-date installation-wise first.
 
  


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
Is the HP Scanjet 2400c still not supported? norm.h Linux - Hardware 1 12-03-2008 10:13 PM
HP Scanner 2400c not responding to xsane norm.h Linux - Hardware 1 11-02-2008 05:20 AM
Scanner help.. failed to open device snapscan/dev/usb/scanner johnathan Linux - Hardware 2 10-12-2007 06:06 PM
usb scanner bind hp:linusb:002:005 to /dev/usb/scanner0 TroelsSmit Linux - Newbie 5 07-29-2004 06:16 AM
USB scanner not in /proc/bus/usb/devices psweetma Linux - Hardware 4 02-25-2004 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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