From owner-freebsd-questions@FreeBSD.ORG Wed Apr 28 17:50:06 2010 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 81677106566B for ; Wed, 28 Apr 2010 17:50:06 +0000 (UTC) (envelope-from mbeis@xs4all.nl) Received: from smtp-vbr15.xs4all.nl (smtp-vbr15.xs4all.nl [194.109.24.35]) by mx1.freebsd.org (Postfix) with ESMTP id F0C698FC16 for ; Wed, 28 Apr 2010 17:50:05 +0000 (UTC) Received: from yokozuna.lan (213-84-73-82.adsl.xs4all.nl [80.101.78.208]) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id o3SHo4hS012192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 28 Apr 2010 19:50:04 +0200 (CEST) (envelope-from mbeis@xs4all.nl) Received: from yokozuna.lan (yokozuna.lan [IPv6:::1]) by yokozuna.lan (8.14.4/8.14.4) with ESMTP id o3SHo43G003433 for ; Wed, 28 Apr 2010 19:50:04 +0200 (CEST) (envelope-from mbeis@xs4all.nl) Date: Wed, 28 Apr 2010 19:50:04 +0200 (CEST) From: Marco Beishuizen Sender: marco@yokozuna.lan To: freebsd-questions@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Using a scanner (USB) as user and not as root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marco Beishuizen List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2010 17:50:06 -0000 Hi, I have a flatbed scanner (a HP ScanJet 4400c) that works with SANE (and Xsane), but only as root and I want to access it as user. After some googling and reading the handbook I copied the default file /etc/defaults/devfs.rules to /etc/ and added the lines: [system=5] add path 'ugen*' mode 0664 group usb add path 'usb/*' mode 0666 group usb and also made the group usb with root and the user in /etc/group. I also added devfs_system_ruleset="system" to /etc/rc.conf. After a reboot, USB and the scanner are still only accessible as root and not as user. What am I doing wrong? Thanks in advance. Marco -- Alan Turing thought about criteria to settle the question of whether machines can think, a question of which we now know that it is about as relevant as the question of whether submarines can swim. -- Edsger W. Dijkstra