LinuxQuestions.org
Help answer threads with 0 replies.
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 08-24-2003, 12:35 PM   #1
psychoholic
Member
 
Registered: Nov 2002
Location: Manchester, UK
Distribution: Slackware 10.2
Posts: 52

Rep: Reputation: 15
Epson N1240U -- xsane & permissions


Hi all!

I've managed to finally get my canon scanner working under slackware linux. However I cannot access my scanner as a normal users. I know the scanner works as I can access and use it as root.I think this is down to the permissions for my scanner being set wrong.

I looked in the /dev/usb/ directory and set every scanner listing (scanner0-10) to owned by tom and in the user group. I also chmod the files to be able to: read/write/xecute by everyone. This didn't work. I think my scanner is under another listing in /dev/ somewhere.

How can I find out what my scanner is using so I can set permissions on it?

Thanks in advance

Tom
 
Old 08-24-2003, 04:20 PM   #2
Guust
LQ Newbie
 
Registered: Aug 2003
Location: Belgium
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
Psychoholic,

there is a section on this in the sane documentation on
http://www.mostang.com/sane/man/sane-usb.5.html.

I'll paste it here for you. I think it can solve your problem.

Guust

Libusb can only access your scanner if it's not claimed by
the kernel scanner driver. If you want to use libusb,
unload the kernel driver (e.g. rmmod scanner under Linux)
or disable the driver when compiling a new kernel. For
Linux, your kernel needs support for the USB filesystem
(usbfs). For kernels older than 2.4.19, replace "usbfs"
with "usbdevfs" because the name has changed. This
filesystem must be mounted. That's done automatically at
boot time, if /etc/fstab contains a line like this:

none /proc/bus/usb usbfs defaults 0 0

The permissions for the device files used by libusb must
be adjusted for user access. Otherwise only root can use
SANE devices. For Linux, the devices are located in
/proc/bus/usb/. There are directories named e.g. "001"
(the bus name) containing files "001", "002" etc. (the
device files). The right device files can be found out by
running scanimage -L as root. Setting permissions with
"chmod" is not permanent, however. They will be resetted
after reboot or replugging the scanner. It's also possible
to mount the usbfs with the option "devmode=0666", e.g. by
using the following line in /etc/fstab:

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

However, this way everyone has access to all USB devices.
Another way to set permissions is to use the hotplug util-
ities (http://linux-hotplug.sourceforge.net/), which sup-
port dynamic setting of access permissions. Last, the
frontends can be run as root. However, that's not recom-
mended for security reasons.


PS: use mount -a to mount your filesystems after you made changes to /etc/fstab.
 
  


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
canoscan fb630P, xsane & parport prmissions linmix Linux - Software 1 03-01-2006 02:45 AM
Epson CX6400 & CX6600 driver problem? Lakota Mandriva 1 06-04-2005 07:48 AM
Canon N640P EX & Xsane don't work Neeko Linux - Hardware 0 02-20-2005 11:40 PM
xsane stopped working with Epson Perfection 1650 after earlier success acampbell Linux - Hardware 6 02-11-2005 05:05 AM
epson 1650 and xsane help please kafnir Linux - General 2 12-04-2002 07:35 AM

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

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