Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100428182223.GA34355>