List Info

Thread: USB sanner only as root




USB sanner only as root
user name
2006-01-22 15:35:50
Hi,

On 2006-01-18 03:21, Mogens Jaeger wrote:
> sane-find-scanner reports:
> found SCSI processor "EPSON GT-9700 1.05" at
/dev/sg6
> This is first time I see the /dev/sg6 - normally its
either /dev/sg1 or 
> /dev/sg5
> I have tried to change permissions on the /dev/sg?, and
then I can use 
> the scanner as user, but after next reboot, the
root-permissions are back.
> 
> Any idea how to change this permanentely? or will it be
easier for me to 
> change to a RedHat/Mandriva/???? than having SuSE to
act in a proper way?

Find out how your kernel creates device files dynamically.
For current
kernels it's udev, older ones use devfs. For devfs and udev
there are
configuration respectively rules files which can be used to
set
permissions.

> I have the sane-backends-1.0.17 installed - but I can't
find any 
> "libsane.rules" or "libsane.db" on
my system!

Both files are for USB, not SCSI so they won't help anyway.

Bye,
  Henning

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
USB sanner only as root
user name
2006-01-23 09:17:27
Hello,

I just picked up the question below but I didn't follow the
whole thread (in particular I do not understand why the
subject
is about USB sanner but the question below is about SCSI).

> On 2006-01-18 03:21, Mogens Jaeger wrote:
> > sane-find-scanner reports:
> > found SCSI processor "EPSON GT-9700
1.05" at /dev/sg6
> > This is first time I see the /dev/sg6 - normally
its either /dev/sg1 or 
> > /dev/sg5
> > I have tried to change permissions on the
/dev/sg?, and then I can use 
> > the scanner as user, but after next reboot, the
root-permissions are back.
> > 
> > Any idea how to change this permanentely? or will
it be easier for me to 
> > change to a RedHat/Mandriva/???? than having SuSE
to act in a proper way?

For SCSI scanners in Suse /etc/init.d/sane-dev is used.
This requires that during booting the scaner can be
recognized
by "scanimage -L" (i.e. have it switched on during
booting and
make sure the necessary SCSI kernel module is loaded during
booting).

Alternatively hack something like
/etc/udev/rules.d/50-udev.rules
to brutally change all 'sg*' permissions.

Note that the device setup changes from version to version.
Additionally there will be further enhancements (e.g.
"HAL").
Scanner setup cannot describe all the details about USB,
hotplug,
udev, HAL, resmgr, PAM, and so on. Refer to the appropriate
specific
documentation if there are problems in one of these areas.


Kind Regards
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5      Mail:
jsmeixsuse.de
90409 Nuernberg, Germany                    WWW: http://www.suse.de/

-- 
sane-devel mailing list: sane-devellists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/sane-d
evel
Unsubscribe: Send mail with subject "unsubscribe
your_password"
             to sane-devel-requestlists.alioth.debian.org
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )