scanner root permissions
When i ran Slack 12.2 Kooka would only work for root. Then I fixed it so I could scan as user. But I forgot how I did it.
Now I am running Slack 13 and I am trying to use skanlite but same old problem. Root only. I read part of this: http://www.sane-project.org/man/sane.7.html It says my device permissions are wrong. How do I fix this? I tried useradd -G scanner icecube but that does nothing. Then I tried usermod -G scanner icecube and that added icecube to the group, scanner. But still I can only use skanlite as root. I don't know what to do. Find scanner as icecube: Code:
icecube@inferno:~$ sane-find-scanner Code:
root@inferno:/home/icecube# sane-find-scanner |
I think you should be in plugdev group too.
Code:
# gpasswd -a icecube plugdev when you create a user with adduser, it asks you the default group and then the additional groups: you should press then the up arrow key to have a default set of additional groups useful if your user use the pc as a desktop. |
Ah! I think I did something stupid.
I did: chown icecube.scanner /dev/usb/lp0 and now /dev/usb is gone! Please tell me how to undo whatever damage I did. |
Okay I still need solution to problem I created in previous post. But I tried you thing and icecube is a member of plugdev and scanner. I logged in again. It still doesn't work. And as far as I can tell
# gpasswd -a icecube plugdev # usermod -G scanner icecube both do the same thing. I added to scanner one way and to plugdev the other way. |
Quote:
|
lol
|
I rebooted. /dev/usb is back, praise God.
And this happens: Code:
root@inferno:/dev/usb# groups icecube |
|
I don't think that's it. I remember reading that last time. The solution is something really simple, a simple command like adding user to scanner.
Maybe I'm wrong. Piter Punk's link is dead. I don't have a "90-local.rules" file. |
I found this with "man sane-usb"
Code:
The permissions for the device files used by libusb must be adjusted for user |
This is /usr/doc/sane-1.0.19/README.linux:
Code:
Information about USB scanners: |
Where is the tools/udev directory? What are they talking about?
|
Hey I got the quick fix. Apparently I use udev. And by using sane-find-scanner as root I got the correct numbers and did this:
chmod a+rw /dev/bus/usb/003/002 And I can use skanlite as icecube! But the man pages say I need to type that every time I boot unless I do the "permissions on the fly" thing with udev. But I don't know what tools/udev directory they are talking about. At this point I'm considering it not worth the effort. I can just make a shellscript with an easy name with the chmod command in it and run the script as root whenever I want to scan which is pretty rare. |
Hello icecubeflower,
the trick is to add yourself to the lp-group (because its a psc-multifunctiondevice). You'll get access to this device only via being a member of the lp-group. Markus |
Quote:
Code:
chmod a+rw /dev/bus/usb/003/002 Its not the right solution, but it works everytime. |
All times are GMT -5. The time now is 04:24 AM. |