Hi Yuri - I wanted to reach back to you and mention I tried out your commands and they all ran - however sane still does not run as user monosij.
So completed all my scans as root using sudo and then chowned on them - works fine for me as I am not doing that many scans. However, will try it out again in a few days. Thanks again for all your help and will keep you updated. Monosij On Wed, Nov 27, 2019 at 12:51 PM Monosij Dutta-Roy <[email protected]> wrote: > Thanks Yuri! Will try and let you know. > > Will try it out in a day or so. > > Much appreciated! > > Mono > > On Tue, Nov 26, 2019 at 2:50 PM Yuri Chornoivan <[email protected]> wrote: > >> вівторок, 26 листопада 2019 р. 21:10:41 EET ви написали: >> > Hi Yuri - >> > >> > To follow up - I created the and even gave it execute permissions: >> > -rw-r--r-- 1 root root 757 Oct 16 13:03 60-vboxdrv.rules >> > -rwxr-xrwx 1 root root 168 Nov 24 12:20 80-scanner.rules >> > >> > I had already run adduser for myself to saned and scanner. >> > >> > My 80-scanner.rules files is as below: >> > # change device EPSON owner group >> > ATTRS{manufacturer}=="EPSON", DRIVERS=="usb", SUBSYSTEMS=="usb", >> > ATTRS{idVendor}=="04b8", ATTRS{idProduct}=="0x013a", GROUP="scanner" >> > >> > Please note my: ATTRS{idProduct}=="0x013a" to reflect the V600. >> > >> > These commands below still give the errors as sudo seems to be different >> > than non-sudo. I ran them as per instructions on *Test The Command*: >> from >> > your link: >> https://askubuntu.com/questions/192134/iscan-only-runs-as-root >> > >> > use udevadm control –reload to load your rule. use lsusb to find your >> > device /dev path to check if your rule is functioning, test with the >> follow >> > command: >> > >> > *$ sudo udevadm test $(udevadm info -q path -n >> /dev/bus/usb/<bus>/<device>) >> > 2>&1 | grep -i group --color* >> > bash: command substitution: line 7: syntax error near unexpected token >> `)' >> > bash: command substitution: line 7: `udevadm info -q path -n >> > /dev/bus/usb/<bus>/<device>)' >> > *$ udevadm test $(udevadm info -q path -n /dev/bus/usb/<bus>/<device>) >> 2>&1 >> > >> > | grep -i group --color* >> > >> > bash: command substitution: line 8: syntax error near unexpected token >> `)' >> > bash: command substitution: line 8: `udevadm info -q path -n >> > /dev/bus/usb/<bus>/<device>)' >> > >> > I am not sure if I should have substituted */<bus>/<device>* for >> something >> > else? >> >> You can use lsusb to determine <bus> and <device> values: >> >> [yurchor@localhost ~]$ lsusb >> Bus 002 Device 004: ID 04b8:0142 Seiko Epson Corp. GT-F730 >> [GT-S630/Perfection >> V33/V330 Photo] >> >> Here, <bus> is 002 and <device> is 004. >> >> Now (in a line), >> >> sudo udevadm test $(udevadm info -q path -n /dev/bus/usb/002/004) 2>&1 | >> grep >> -i group --color >> >> should show you the 'scanner' group as owner. >> >> You may try to open /usr/lib/udev/rules.d/60-libsane.rules and search for >> the >> line 'EPSON Perfection V600 Photo' >> >> For me, it's >> >> TTRS{idVendor}=="04b8", ATTRS{idProduct}=="013a", MODE="0644", >> GROUP="usb", >> ENV{libsane_matched}="yes" >> >> Notice the owner group (in my case it's "usb". Then try to add you to >> "usb" >> group as well >> >> sudo adduser [YOU] usb >> >> Hope this helps at last. >> >> Best regards, >> Yuri >> >> > ... >> > However everything still runs fine as root iscan and gscan2pdf. Again >> > sane-find-scanner works as sudo but not as myself. >> > >> > Ok then look forward to hearing what else I could try - but as you can >> see >> > I am ok as scans fine and I can get my work done. >> > >> > Thank you again for you help! >> > >> > Mono >> > >> > >> > >> > >> > >> > >> > On Sat, Nov 23, 2019 at 2:01 PM Monosij Dutta-Roy < >> [email protected]> >> > wrote: >> > > Thanks Yuri. >> > > >> > > Will do in a bit, maybe tomorrow, and will let you know. >> > > >> > > BTW add the file as sudo I assume. >> > > >> > > Much thanks for the help! >> > > >> > > Mono >> > > >> > > On Sat, Nov 23, 2019 at 1:32 PM Yuri Chornoivan <[email protected]> >> wrote: >> > >> субота, 23 листопада 2019 р. 20:24:13 EET Monosij Dutta-Roy написано: >> > >> > Thanks Yuri. >> > >> > >> > >> > Just to confirm - just adding myself to saned and scanner still >> does >> > >> > not >> > >> > work. >> > >> > >> > >> > To follow the link you sent above - I still need to follow through >> with >> > >> >> > >> the >> > >> >> > >> > section >> > >> > *Create a rule for the device* and *Test the rule* - >> > >> > since *Ubuntu updated the scanner policy* - it seems like? >> > >> >> > >> Yes. Just add the mentioned file with the part >> > >> >> > >> ATTRS{idProduct}=="0142" >> > >> >> > >> replaced with >> > >> >> > >> ATTRS{idProduct}=="013a" >> > >> >> > >> in its contents and everything should work as soon as you attach the >> > >> scanner. >> > >> >> > >> Best regards, >> > >> Yuri >> > >> >> > >> > the Create rule seems complicated - so will go ahead with doing so >> once >> > >> >> > >> I >> > >> >> > >> > get your confirmation and let you know how it works. >> > >> > >> > >> > Meanwhile - it works great as sudo and sudo gscan2pdf works great >> as >> > >> >> > >> well! >> > >> >> > >> > Thank you much. >> > >> > >> > >> > Mono >> > >> > >> > >> > On Sat, Nov 23, 2019 at 1:04 PM Yuri Chornoivan <[email protected]> >> > >> >> > >> wrote: >> > >> > > субота, 23 листопада 2019 р. 19:55:02 EET ви написали: >> > >> > > > Hi Yuri - >> > >> > > > >> > >> > > > Thanks for your detailed email! I ran the commands and it >> seems it >> > >> > > >> > >> > > detects >> > >> > > >> > >> > > > the scanner when running as sudo. >> > >> > > > Thus *sudo sane-find-scanner* works, but *sane-find-scanner* >> does >> > >> >> > >> not. >> > >> >> > >> > > > In your interpreter commands noted, some of them did not run >> even >> > >> >> > >> though >> > >> >> > >> > > > the previous ones worked. >> > >> > > > >> > >> > > > Instead of explaining them, thought I would just send them >> over. >> > >> >> > >> Thus he >> > >> >> > >> > > > commands are attached. >> > >> > > > >> > >> > > > But essentially it seems to be problem with finding the >> interpreter >> > >> > > > command. I tried with sudo as well: >> > >> > > > ... >> > >> > > > monosij@blue:~$ interpreter usb 0x04b8 0x013a >> > >> > > > /usr/lib/esci/libesci-interpreter-perfection-v600 >> > >> > > > interpreter: command not found >> > >> > > > monosij@blue:~$ sudo interpreter usb 0x04b8 0x013a >> > >> > > > /usr/lib/esci/libesci-interpreter-perfection-v600 >> > >> > > > sudo: interpreter: command not found >> > >> > > > monosij@blue:~$ interpreter usb 0x04b8 0x013a >> > >> > > > /usr/lib/esci/libesci-interpreter-perfection-v600 >> > >> > > > interpreter: command not found >> > >> > > > monosij@blue:~$ iscan-registry -r interpreter usb 0x04b8 >> 0x013a >> > >> > > > /usr/lib/esci/libesci-interpreter-perfection-v600 >> > >> >> > >> > > > sed: couldn't open temporary file /var/lib/iscan/sedkJn36b: >> > >> Permission >> > >> >> > >> > > > denied >> > >> > > > monosij@blue:~$ iscan >> > >> > > > Gtk-Message: 12:28:42.614: Failed to load module >> > >> >> > >> "canberra-gtk-module" >> > >> >> > >> > > > monosij@blue:~$ sudo iscan *-- works and opens iscan, >> detects >> > >> >> > >> right >> > >> >> > >> > > > scanner and scans fine* >> > >> > > > Gtk-Message: 12:49:07.331: Failed to load module >> > >> >> > >> "canberra-gtk-module" >> > >> >> > >> > > > ... >> > >> > > > The list of commands I ran is attached. >> > >> > > > >> > >> > > > I am trying to get the scanner to work with gsan2pdf with which >> > >> >> > >> worked >> > >> >> > >> > > fine >> > >> > > >> > >> > > > before - and that still does not detect the scanner. >> > >> > > > >> > >> > > > Thank you for your help. >> > >> > > > >> > >> > > > Mono >> > >> > > >> > >> > > Sorry for misguiding you with faulty line breaks. Anyway the >> source >> > >> >> > >> of the >> > >> >> > >> > > problem was other than I think first. It's not the scanner >> > >> >> > >> registration, >> > >> >> > >> > > but a >> > >> > > problem with permissions. >> > >> > > >> > >> > > Please follow these instructions (second advice): >> > >> > > >> > >> > > https://askubuntu.com/questions/192134/iscan-only-runs-as-root >> > >> > > >> > >> > > Hope this helps. >> > >> > > >> > >> > > Best regards, >> > >> > > Yuri >> >> >> >>
