From owner-freebsd-questions@FreeBSD.ORG Wed Jun 10 18:58:42 2009 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 597AE106566B for ; Wed, 10 Jun 2009 18:58:42 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.freebsd.org (Postfix) with ESMTP id C73088FC15 for ; Wed, 10 Jun 2009 18:58:41 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id n5AIwe4F024991; Wed, 10 Jun 2009 20:58:40 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 5A7D2BA8E; Wed, 10 Jun 2009 20:58:40 +0200 (CEST) Date: Wed, 10 Jun 2009 20:58:40 +0200 From: Roland Smith To: Steve Franks Message-ID: <20090610185840.GA1521@slackbox.xs4all.nl> References: <539c60b90906101137v542a6185s5ffe06407759da1f@mail.gmail.com> <539c60b90906101147r222a3faeg9ccf3195dc6c3d4b@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <539c60b90906101147r222a3faeg9ccf3195dc6c3d4b@mail.gmail.com> 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.19 (2009-01-05) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Mailing List Subject: Re: devd or devfs for ucom? 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, 10 Jun 2009 18:58:42 -0000 --zYM0uCDKw75PZbzx Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 10, 2009 at 11:47:14AM -0700, Steve Franks wrote: > On Wed, Jun 10, 2009 at 11:37 AM, Steve Franks w= rote: > > I'm having trouble making my ucom devices public, following the > > handbook (had it working on 7.0, but had a disk crash). > > > > So, should I be using devd.conf or devfs.rules? =A0They sure seem built > > to do the same thing to me... > > > > Thanks, > > Steve > > >=20 > While I wouldn't mind an answer to that question, it's actually > working; however, my program that uses libftdi & libusb to talk to my > ugen still needs to run as sudo to see the device - but if I run chmod > 666 /dev/* (which I'm sure is a bad idea), I don't need sudo; what > device is required for libusb besides ugen? The hub? It will need access to /dev/usb* My solution was to create a group called 'usb', adding my user-id as a member, and set that as the group of /dev/usb*, with permissions 0660: ------- /etc/devfs.rules excerpt ------- [myrules=3D10] add path 'uscanner*' mode 0660 group usb add path 'usb*' mode 0660 group usb add path 'ugen*' mode 0660 group usb ------- /etc/devfs.rules excerpt ------- ------- /etc/rc.conf excerpt ------- # Set the default devfs ruleset. devfs_system_ruleset=3D"myrules" ------- /etc/rc.conf excerpt ------- Roland --=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) --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkowAmAACgkQEnfvsMMhpyXDswCghmYQlnEcHelHhp/6C/MVQpyO rtUAn2C94z4b5yQRhUEG34Jow1DX6ZQK =bN0N -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--