From owner-freebsd-questions@FreeBSD.ORG Fri Feb 4 01:07:29 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 B6759106566C for ; Fri, 4 Feb 2011 01:07:29 +0000 (UTC) (envelope-from remegius@comcast.net) Received: from qmta12.emeryville.ca.mail.comcast.net (qmta12.emeryville.ca.mail.comcast.net [76.96.27.227]) by mx1.freebsd.org (Postfix) with ESMTP id 978398FC08 for ; Fri, 4 Feb 2011 01:07:29 +0000 (UTC) Received: from omta03.emeryville.ca.mail.comcast.net ([76.96.30.27]) by qmta12.emeryville.ca.mail.comcast.net with comcast id 3cuH1g0050b6N64ACd7Vjg; Fri, 04 Feb 2011 01:07:29 +0000 Received: from remegius.comcast.net ([67.180.204.190]) by omta03.emeryville.ca.mail.comcast.net with comcast id 3d7T1g00C46zqiB8Pd7Upj; Fri, 04 Feb 2011 01:07:28 +0000 Message-ID: <4D4B514F.4060908@comcast.net> Date: Thu, 03 Feb 2011 17:07:27 -0800 From: Rem P Roberti User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20110131 Thunderbird/3.1.7 MIME-Version: 1.0 To: Roland Smith References: <4D4B2104.7080802@comcast.net> <20110203221304.GA36175@slackbox.erewhon.net> In-Reply-To: <20110203221304.GA36175@slackbox.erewhon.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Fri, 04 Feb 2011 01:07:29 -0000 > Boy, this kind of problem has been following around lately. When I >> attempt to start Xsane as user I get an error message telling me "No >> device available." One of the help options states that the permissions >> for the device file may not allow its use---try as root. Naturally, >> when I start the program as root it recognizes the scanner and works >> perfectly. But I sure don't want to run this program as root. I >> thought that I had all of my permissions taken care of in >> /etc/devfs.conf, but apparently I don't. Either that or it really isn't >> a permissions problem to begin with, in which case I'm not sure where to >> 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. > > 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 system > then 'mode 0666' would suffice, and you don't need to use a special group. > > Roland Yep...I was a bit quick on the trigger. Object lesson: IT PAYS TO READ THE HANDBOOK!:-) But thank you for responding. Once I created the usb group and put the appropriate entries in /etc/devfs.rules all was well. This was a good learn for me, however, since I now understand the difference between devfs.conf and devfs.rules. Cheers... Rem