printer scanner permission problem
I have an all-in-one scanner/printer from HP. I used to be able to scan and print without problem. Now I can print but only scan if I use xsane as root. Xsane says "no devices available". I went to the 'Users and Groups' app under 'System -> Administration' and my user *is* in the scanner group. The checkbox next to 'Use Scanners' is already checked.
I recently removed hpoj, then more recently I tried to reinstall it and aptitude tried to remove hpijs and hplip ... in the past I think I had both installed. hpoj doesn't allow me to select my printer from cups so I'd rather stick with hpijs. I don't know if this effects things at all though. Thanks in advance. Any help would be appreciated. |
I happen to dealing with the problem myself. The problem is that udev is setting the permissions on the usb device /dev/bus/usb/###/### to 0660 with the user root and the group either lp or scanner.
There is a rule in /lib/udev/rules.d/50-udev-default.rules which sets the printer info: Code:
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="", IMPORT{program}="usb_id --export %p" My solution for the moment is to create a custom rule in /etc/udev/rules.d/99-custom.rules: Code:
ATTR{idVendor}=="04b8", ATTR{idProduct}=="0813", MODE="0666", GROUP="lp" Code:
lsusb |
Thanks for the fast reply. I tried this and it works.
BTW, I tried other things after your post that didn't work. There's a file in /etc/default/ called saned. It has an option for "RUN_AS_USER" which I set to "lp". After setting another option "RUN" to "yes" I executed "/etc/init.d/saned restart" but this resulted in nothing useful. Your solution seems to produce the desired effect. If you come across something more elegant, please do post it as it would interest me. Thanks. Also, do you think this is an error in some particular piece of software? As I stated, the xsane program used to work for me just fine until a few days ago. |
Quote:
But ... .. . (and read this to the end, please) Quote:
What distro are you running this on ? [Your profile, at Left says "Distribution: Debian etch, lenny, squeeze", so which, exactly, is it?] Quote:
- What model is it, exactly? - What is its USB ID, if it is connected by USB ? - Where's the link to the manufacturer's PDF manual for it? Etc... .. . Apologies if you see me as whining at you, but you'll appreciate that LQ is a valuable resource. Google re-indexes it about every minute (so they clearly see it as a useful resource of information). If you don't include vital search terms ( your scanner's model number, its USB IDs (or other unique identification) your distro... ) then we are less able to help you personally (perhaps by doing searches for you) and the internet search engines will be unable to help other people running your distro with your specific HP scanner problems. Maybe you have by now solved your problems, with Meson's inspired help but how has that helped the wider community? Does that matter to you? Please think about this, and then add a reply to this thread with the DETAILS, so those search-engines can index it to help others searching for a resolution to the same problem. It's painless And it all helps ;) |
Quote:
|
Quote:
|
Quote:
Quote:
Quote:
HP Photosmart C3180 All-in-one Bus 003 Device 002: ID 03f0:5611 Hewlett-Packard PhotoSmart C3180 I don't have a link for the manufacturer's manual. Quote:
|
Scanner permission problem: A simple solution that worked for me.
Hi.
I have recently installed Arch Linux. However, my multipurpose printer-scanner (a HP Deskjet F2280 ) would not scan unless I ran xsane as root. (Sane could only find a scanner if it ran with root permissions.) A friend helped me track down the problem. It was not sufficient for the user to be in the "scanner" group, but adding the user to the "lp" group as well, solved the problem. (A user can be a member of many groups simultaneously.) Hope this info will help someone out there. |
Quote:
|
Does anyone know why udev (or sane?) sometimes seems to ignore the rules in the /lib/udev/rules.d directory?
Mensons post (#2) is a good example of what I mean. He had to create a custom rule in /etc/udev/rules.d/99-custom.rules to get his scanner working. I've had to do the same in the past too. Even though both scanner devices were in the /lib/udev/rules.d/53-sane.rules file. In the end I just copied and pasted everything from the 53-sane.rules file to a custom file /etc/udev/rules.d/96-scanner.rules Now xsane detects the three different scanners my laptop has access to with no problem (a Mustek 1200, Canoscan n1240u & another which is not mine). But shouldn't 53-sane.rules have allowed that anyway? All three scanners were given rules in 53-sane.rules, so why was a custom file needed in a different directory? PS. am running Arch-linux also ;) |
All times are GMT -5. The time now is 04:43 PM. |