From owner-freebsd-questions@FreeBSD.ORG Thu Feb 3 22:13:10 2011 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 255AE1065694 for ; Thu, 3 Feb 2011 22:13:10 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.freebsd.org (Postfix) with ESMTP id 973888FC19 for ; Thu, 3 Feb 2011 22:13:09 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr14.xs4all.nl (8.13.8/8.13.8) with ESMTP id p13MD52v055101; Thu, 3 Feb 2011 23:13:05 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id E2757BABC; Thu, 3 Feb 2011 23:13:04 +0100 (CET) Date: Thu, 3 Feb 2011 23:13:04 +0100 From: Roland Smith To: Rem P Roberti Message-ID: <20110203221304.GA36175@slackbox.erewhon.net> References: <4D4B2104.7080802@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <4D4B2104.7080802@comcast.net> 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.21 (2010-09-15) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: FreeBSD Subject: Re: Running Xsane as user 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: Thu, 03 Feb 2011 22:13:10 -0000 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 03, 2011 at 01:41:24PM -0800, Rem P Roberti wrote: > Boy, this kind of problem has been following around lately. When I=20 > attempt to start Xsane as user I get an error message telling me "No=20 > device available." One of the help options states that the permissions= =20 > for the device file may not allow its use---try as root. Naturally,=20 > when I start the program as root it recognizes the scanner and works=20 > perfectly. But I sure don't want to run this program as root. I=20 > thought that I had all of my permissions taken care of in=20 > /etc/devfs.conf, but apparently I don't. Either that or it really isn't= =20 > a permissions problem to begin with, in which case I'm not sure where to= =20 > start looking for a solution. The file devfs.conf is only for devices that are connected at boot. For devices like USB that are plugged in after booting, you should use devfs.rules. Read the manpages for devfs.conf and devfs.rules.=20 I've got the following in my /etc/devfs.rules for USB devices; add path 'usb/*' mode 0660 group usb add path 'ugen*' mode 0660 group usb Of course my user-id is in the usb group. If you trust all users of the sys= tem then 'mode 0666' would suffice, and you don't need to use a special group. 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) --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iEYEARECAAYFAk1LKHAACgkQEnfvsMMhpyWroACcD3+gFzA0C+doz5sumAg8DIS1 FpwAnAqZpHNO6xYgkZyWQn3iv36Yu8SQ =NDKe -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--