Date: Wed, 28 Apr 2010 20:22:23 +0200 From: Roland Smith <rsmith@xs4all.nl> To: Marco Beishuizen <mbeis@xs4all.nl> Cc: freebsd-questions@freebsd.org Subject: Re: Using a scanner (USB) as user and not as root Message-ID: <20100428182223.GA34355@slackbox.erewhon.net> In-Reply-To: <alpine.BSF.2.00.1004281939070.3115@yokozuna.lan> References: <alpine.BSF.2.00.1004281939070.3115@yokozuna.lan>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Wed, Apr 28, 2010 at 07:50:04PM +0200, Marco Beishuizen wrote: > Hi, > > 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: > > [system=5] > 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. -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkvYfN8ACgkQEnfvsMMhpyVKLwCfZ/ql+1nENktS5uuOGu/WXnhw vmYAnjp0aHHK3bdgyzziUmWhmkbKF0d8 =6jdX -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100428182223.GA34355>
