Subject: Re: [sane-devel] USB sanner only as root

Gerald Murray gmurray at cloudnet.com
Thu Jan 19 04:58:57 UTC 2006


>Any idea how to change this permanentely?
>Any help appreciated
>
>--
>mvh Mogens Jæger


UDEV can be used to manage permissions.
I am using udev.rules (ubuntu hoary, udev-075, linux-2.6.14)
(the kernel must be at least 2.6.10 or newer; use may vary by distribution)
I also have /etc/hotplug/usb/libusbscanner script that sets the
group to 'scanner'

The scanner is brought up with these permissions:
-rw-rw----  1 root scanner 57 2006-01-18 04:15 /proc/bus/usb/001/005

/etc/udev/udev.rules --- selected entries ---
# permissions for USB scanner devices
BUS="usb", KERNEL="scanner[0-15]", NAME="scanner%e", MODE="0660", GROUP="saned"

# USB devices
BUS="usb", KERNEL="scanner[0-15]",      NAME="usb/%k"
--end--

Some similar changes are possible for SCSI or Firewire.

regards,
Gerald






More information about the sane-devel mailing list