From owner-freebsd-questions@freebsd.org Thu Aug 6 14:08:46 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DDF6A9B4E69 for ; Thu, 6 Aug 2015 14:08:45 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from lb1-smtp-cloud3.xs4all.net (lb1-smtp-cloud3.xs4all.net [194.109.24.22]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "*.xs4all.nl", Issuer "GlobalSign Domain Validation CA - SHA256 - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 78BB87CD for ; Thu, 6 Aug 2015 14:08:44 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.erewhon.home ([83.162.243.5]) by smtp-cloud3.xs4all.net with ESMTP id 1S7V1r00X07iGuj01S7WgZ; Thu, 06 Aug 2015 16:07:32 +0200 Received: by slackbox.erewhon.home (Postfix, from userid 1001) id D8A431244B; Thu, 6 Aug 2015 16:07:29 +0200 (CEST) Date: Thu, 6 Aug 2015 16:07:29 +0200 From: Roland Smith To: Anthony Campbell Cc: freebsd-questions@freebsd.org Subject: Re: Permissions problem for sane Message-ID: <20150806140729.GA40869@slackbox.erewhon.home> Mail-Followup-To: Anthony Campbell , freebsd-questions@freebsd.org References: <20150806104335.GA27748@ithaca.acampbell.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <20150806104335.GA27748@ithaca.acampbell.uk> 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.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2015 14:08:46 -0000 --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 pw groupmod cdrom -m 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--