Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2015 16:07:29 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Anthony Campbell <ac@acampbell.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Permissions problem for sane
Message-ID:  <20150806140729.GA40869@slackbox.erewhon.home>
In-Reply-To: <20150806104335.GA27748@ithaca.acampbell.uk>
References:  <20150806104335.GA27748@ithaca.acampbell.uk>

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

--yrj/dFKFPuw6o+aM
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Aug 06, 2015 at 11:43:35AM +0100, Anthony Campbell wrote:
> My first posting to this list. I've been using 10.1 for a couple of
> months on my Thinkpad T60 without problems.
>=20
> Trying to get my Epson 1650 scanner to work, I found it was only
> detected as root. It's at /dev/usb:/dev/ugen0.2
>=20
> After googling, I found instructions on Freebsd manual for 8.7, which
> involved creating a usb group and making/modifying /etc/devfs.rules.
> This didn't work.
>=20
> I then added myself to the wheel and operator groups but again no
> result.
>=20
> Should I modify the permissions on /dev/ugen0.2?

Here is what I did to fix USB and CD-ROM/DVD access problems.

1) Created groups =E2=80=9Cusb=E2=80=9D/=E2=80=9Ccdrom=E2=80=9D and added m=
y user-id to those groups.

    pw groupadd usb
    pw groupadd cdrom
    pw groupmod usb -m <username>
    pw groupmod cdrom -m <username>

2) Added the following to the file /etc/devfs.rules:

    [custom_rules=3D10]
    add path 'da*' mode 0660 group usb
    add path 'msdosfs/*' mode 0660 group usb
    add path 'usb/*' mode 0660 group usb
    add path 'ugen*' mode 0660 group usb
    add path 'pass*' mode 0660 group cdrom

3) Activated this ruleset in /etc/rc.conf:

    devfs_system_ruleset=3D"custom_rules"

4) reboot to activate the new ruleset and rules.

Roland
--=20
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93  FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)

--yrj/dFKFPuw6o+aM
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iQIcBAABCAAGBQJVw2oZAAoJEED21dyjijPgMJgP+wXVmPoyWjCRku+3VcWM6a20
v2K+mIC8nQheSNFsucu36yDqm3FGrCd7A8ZHKFksVxyJtJedVJBS2JGE/3R4Mrmj
m7eo+Dx/NLl9QYMiXNEHLZ0ee5V9pLdguGiaMrbnNBBawMlr6MFaXkyFhSCL7azU
mXGrkY/kyXrFlqYVg/i5aKWIcbQZwfnukCs0KRZ34HylwvkulkgsOHjVz0LksrmP
LqRb6uuhY8akzxDdUK+C6gX+B5UPC6TD/fxbT0xxWi+3g/caozgT3TZ2r7aLdT4P
Jo/1FICOvJsyU9D4+P0yasdNm7OMEmZ3HzNRynDgIcBSJRiMIn+4ltaySib37r5Q
FDoyWRrF6RfmkM9ehKU+y6uNb5eqNg7u4vOdwECvN39xsDIXmxlE2bAuqTPHVrV1
9FDOu2QMlhZHN0zIkJm7kPeT4PY3sZf0/QebwNs0OePMOiqQmk0S2x3l0EBzHkAT
kGiP4G9d5uvyrbn6R3gQcdFS/zoAHwYeoVuPJueqapuqGCrcjkmm3CRJpSUi4Zff
T09FJypRmK9C0KNvXV6kKBCt8LGK3k0cfiM772CMPyk37JAwPCMkudEJcIqqiPLd
eum/oPBnIDnnUTfuGUMhOcf1LV0T01eKLN3NIGm0RADRbpkddqUj4iCDxJsPhJe1
rRAAtRQfVp2G7WfSUchV
=jEgk
-----END PGP SIGNATURE-----

--yrj/dFKFPuw6o+aM--



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