From owner-freebsd-questions@FreeBSD.ORG Wed Oct 1 20:25:10 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8730A106569A for ; Wed, 1 Oct 2008 20:25:10 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 32CC28FC23 for ; Wed, 1 Oct 2008 20:25:10 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.14.2/8.13.8) with ESMTP id m91KDZ3d067479; Wed, 1 Oct 2008 15:13:35 -0500 (CDT) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7Wx7gONtFuvd; Wed, 1 Oct 2008 15:13:31 -0500 (CDT) Received: from archangel.daleco.biz (dsl.daleco.biz [209.125.108.70]) by ezekiel.daleco.biz (8.14.2/8.13.8) with ESMTP id m91KD94S067469; Wed, 1 Oct 2008 15:13:10 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <48E3D9CF.7020100@daleco.biz> Date: Wed, 01 Oct 2008 15:13:03 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.16) Gecko/20080719 SeaMonkey/1.1.11 MIME-Version: 1.0 To: questions@freebsd.org References: <48E3A52D.7080201@vivodinet.gr> In-Reply-To: <48E3A52D.7080201@vivodinet.gr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: John Vliouras Subject: Re: Scanner 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, 01 Oct 2008 20:25:10 -0000 John Vliouras wrote: > I wonder if this is the right place to ask a question regarding FreeBsd7 > and the Handbook. It is, unless you have a specific "fix" (patch) for the handbook, in which case you send a PR and/or discuss it on the doc@ list (generally send a PR is correct; doc@ is a list for use by the doc writers, so it should be pretty important before we bother them). > I have installed FreeBsd7 both i386 and amd64 architectures in two > macines, one celeron dual core with 1GB, the other amd64x2 3800+ ,and I > have problem with my scanner. > > > The problem is my scanner a Canon Lide 60. Running #scanimage -L I get > "device `genesys:libusb:/dev/usb1:/dev/ugen0' is a Canon Lide 60 flatbed > scanner" which is right and it shows up with xsane as root (when I am > lucky to use xsane as root in gnome) > > Now trying to: "7.6.4 Giving Other Users Access to the Scanner > > All previous operations have been done with root privileges. You may > however, need other users to have access to the scanner. The user will > need read and write permissions to the device node used by the scanner. > As an example, our USB scanner uses the device node /dev/uscanner0 which > is owned by the operator group. Adding the user joe to the operator > group will allow him to use the scanner: > > # pw groupmod operator -m joe > > For more details read the pw(8) manual page. You also have to set the > correct write permissions (0660 or 0664) on the /dev/uscanner0 device > node, by default the operator group can only read the device node. This > is done by adding the following lines to the /etc/devfs.rules file: > > [system=5] > add path uscanner0 mode 660 Since your device is "ugen0" instead of "uscanner0", you might try adjusting the line to fit that. > Then add the following to /etc/rc.conf and reboot the machine: > > devfs_system_ruleset="system" > > More information regarding these lines can be found in the devfs(8) > manual page. > > Note: Of course, for security reasons, you should think twice before > adding a user to any group, especially the operator group." > > I cannot find "/etc/devfs.rules" file, it does not exist. I tried to > make one adding what I was instructed, to no avail. I tried to put > "[system=5]" etc in the "/etc/defaults/devfs.rules" file, which exists, > but it did not work either. Well, you didn't find /etc/devfs.rules because it's not created by default, but only is used if additional local configuration is needed (for example, to change permissions on a scanners /dev/ node). :-) Creating the file in /etc/ is the way to go. Perhaps if you note what I said above it will work for you this time. However, IANAE, some it may not, (YMMV, #include "disclaimer.h" and all that). > I suppose I must be doing something wrong. Please bear in mind that this > is my first time that I am using the command line. I have been able to > thanks to the very easy and instructive FreeBSD's handbook. It is nice, isn't it? :-) > Thank you, > > John Vliouras Kevin Kinsey -- Don't despise your poor relations, they may become suddenly rich one day. -- Josh Billings