View previous topic :: View next topic |
Author |
Message |
Felix82 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 31 Aug 2003 Posts: 50 Location: near Munich, Germany
|
Posted: Wed May 12, 2004 3:38 pm Post subject: Scanner problem |
|
|
Hi!
I've got a problem with my scanner. I can only use it as root.
Of course i already used the search function and did exactly the same things as the other people with that kind of prob.:
1. emerge libusb hotplug sane-backends sane-frontends
2. started hotplug and added it to default runlevel
3. put my scanner in /etc/hotplug/usb.usermap (with the right ids)
4. made a script: /etc/hotlug/usb/scanner to change permissons when scanner is detected
5. usb 0x04b8 0x0802 in /etc/sane.d/epson.conf
But still i can't access the scanner as normal user. I checked everything a hundred times so surely no typos!
I hope someone could help me.
Nice greetings from bavaria,
Felix _________________
- [Athlon XP 2500+, 512MB RAM, GF2MX, 120+160GB, SiS746FX Board]: Gentoo only
- [Athlon T-Bird 1000, 512MB RAM, GF2MX, 80GB, KT133 Board]: Gentoo, W2K
Last edited by Felix82 on Wed May 12, 2004 3:54 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
undrwater Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/56532540475587e17ec87.jpg)
Joined: 28 Jan 2003 Posts: 314 Location: Caucasia
|
Posted: Wed May 12, 2004 3:42 pm Post subject: |
|
|
Maybe add your users to usb in /etc/group? _________________ Open-mindedness is painful... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Felix82 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 31 Aug 2003 Posts: 50 Location: near Munich, Germany
|
Posted: Wed May 12, 2004 3:52 pm Post subject: |
|
|
my user is already in the /etc/group file.
but thanks anyway.
maybe some other suggestions? _________________
- [Athlon XP 2500+, 512MB RAM, GF2MX, 120+160GB, SiS746FX Board]: Gentoo only
- [Athlon T-Bird 1000, 512MB RAM, GF2MX, 80GB, KT133 Board]: Gentoo, W2K
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neysx Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/17295657453e350b33c0b78.jpg)
Joined: 27 Jan 2003 Posts: 795
|
Posted: Wed May 12, 2004 4:04 pm Post subject: |
|
|
Could you post the script you wrote ?
This post might help as well. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Felix82 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 31 Aug 2003 Posts: 50 Location: near Munich, Germany
|
Posted: Thu May 13, 2004 5:57 am Post subject: |
|
|
/etc/hotplug/usb/scanner looks like this:
Code: |
#!/bin/bash
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
chown root "${DEVICE}"
chgrp users "${DEVICE}"
chmod 660 "${DEVICE}"
fi
|
_________________
- [Athlon XP 2500+, 512MB RAM, GF2MX, 120+160GB, SiS746FX Board]: Gentoo only
- [Athlon T-Bird 1000, 512MB RAM, GF2MX, 80GB, KT133 Board]: Gentoo, W2K
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neysx Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/17295657453e350b33c0b78.jpg)
Joined: 27 Jan 2003 Posts: 795
|
Posted: Thu May 13, 2004 8:43 am Post subject: |
|
|
As mentioned in the linked post above, this script did not work for me. The chxxx comands are not executed. Try mine or the one that comes with the latest version of sane-backends (/etc/hotplug/usb/libusbscanner). The latter should work on udev systems as well.
Hth |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Felix82 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 31 Aug 2003 Posts: 50 Location: near Munich, Germany
|
Posted: Thu May 13, 2004 9:03 am Post subject: |
|
|
The difference to your script is actually just the "-e". I also tried this but it still didn't work. Looks like my script doesn't start at all. _________________
- [Athlon XP 2500+, 512MB RAM, GF2MX, 120+160GB, SiS746FX Board]: Gentoo only
- [Athlon T-Bird 1000, 512MB RAM, GF2MX, 80GB, KT133 Board]: Gentoo, W2K
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
neysx Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/17295657453e350b33c0b78.jpg)
Joined: 27 Jan 2003 Posts: 795
|
Posted: Thu May 13, 2004 9:13 am Post subject: |
|
|
I suppose your script name matches the name in your usb.usermap. Is it executable? It's clearly that either the script is not run at all or it does not change the permissions. Check the other discussion I am having at the moment at https://forums.gentoo.org/viewtopic.php?t=172556&start=4
Hth |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|