From owner-freebsd-questions@FreeBSD.ORG Wed Apr 28 18:22:25 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 513F1106566C for ; Wed, 28 Apr 2010 18:22:25 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr18.xs4all.nl (smtp-vbr18.xs4all.nl [194.109.24.38]) by mx1.freebsd.org (Postfix) with ESMTP id D209A8FC0C for ; Wed, 28 Apr 2010 18:22:24 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr18.xs4all.nl (8.13.8/8.13.8) with ESMTP id o3SIMNIR068394; Wed, 28 Apr 2010 20:22:23 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id 1A23DBA96; Wed, 28 Apr 2010 20:22:23 +0200 (CEST) Date: Wed, 28 Apr 2010 20:22:23 +0200 From: Roland Smith To: Marco Beishuizen Message-ID: <20100428182223.GA34355@slackbox.erewhon.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Using a scanner (USB) as user and not as root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2010 18:22:25 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 28, 2010 at 07:50:04PM +0200, Marco Beishuizen wrote: > Hi, >=20 > I have a flatbed scanner (a HP ScanJet 4400c) that works with SANE (and= =20 > Xsane), but only as root and I want to access it as user. After some=20 > googling and reading the handbook I copied the default file=20 > /etc/defaults/devfs.rules to /etc/ and added the lines: >=20 > [system=3D5] > add path 'ugen*' mode 0664 group usb > add path 'usb/*' mode 0666 group usb >=20 > and also made the group usb with root and the user in /etc/group. > I also added devfs_system_ruleset=3D"system" to /etc/rc.conf. >=20 > After a reboot, USB and the scanner are still only accessible as root and= =20 > 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. --=20 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) --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkvYfN8ACgkQEnfvsMMhpyVKLwCfZ/ql+1nENktS5uuOGu/WXnhw vmYAnjp0aHHK3bdgyzziUmWhmkbKF0d8 =6jdX -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--