LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   User permissions/groups to access USB scanner (http://www.linuxquestions.org/questions/slackware-14/user-permissions-groups-to-access-usb-scanner-782745/)

gauchao 01-17-2010 05:56 AM

User permissions/groups to access USB scanner
 
Slackware 13 64 bit
Hp Photosmart c4280 USB (All-in-one)

- Printer successfully configured using CUPS
- Scanner only works when I am Root.
- When trying to access scanner as user it says there is no scanner attached.

What should be the groups for this user in order to access the scanner? Actually, they are: haldaemon, disk, audio, video, cdrom, plugdev, power, scanner, lp.

Below are the outputs for sane-find-scanner (as both root and user), although, since the scanner works well under root, I am almost sure it is a problem with setting permissions and groups. Thank you!

Quote:

# sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x03f0 [HP], product=0x5c11 [Photosmart C4200 series]) at libusb:002:005
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
Quote:

$ sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.

# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.

H_TeXMeX_H 01-17-2010 06:14 AM

Well, I'm in the following groups and my HP all-in-one works fine, scanner too:

Code:

bash-3.1$ groups
users lp floppy audio video cdrom plugdev power netdev

Note that after you add yourself to these groups you may have to restart messagebus '/etc/rc.d/rc.messagebus reload'.

gauchao 01-17-2010 06:22 AM

Thank you very much, TexMex. I just needed to restart messagebus. It works flawlessly. Sorry to bother you.


All times are GMT -5. The time now is 12:51 AM.