Using a scanner (USB) as user and not as root
rsmith at xs4all.nl
Wed Apr 28 18:22:25 UTC 2010
On Wed, Apr 28, 2010 at 07:50:04PM +0200, Marco Beishuizen wrote:
> I have a flatbed scanner (a HP ScanJet 4400c) that works with SANE (and
> Xsane), but only as root and I want to access it as user. After some
> googling and reading the handbook I copied the default file
> /etc/defaults/devfs.rules to /etc/ and added the lines:
> add path 'ugen*' mode 0664 group usb
> add path 'usb/*' mode 0666 group usb
> and also made the group usb with root and the user in /etc/group.
> I also added devfs_system_ruleset="system" to /etc/rc.conf.
> After a reboot, USB and the scanner are still only accessible as root and
> not as user. What am I doing wrong?
Are the permissions correct? Check with 'ls -l /dev/usb/ /dev/ugen*'.
Is your user-id in the usb group? Check by running 'id' as the normal user.
If all that is in order, remove all lines except the three above from
/etc/devfs.rules, and try again.
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20100428/7057e25a/attachment.pgp
More information about the freebsd-questions