From owner-freebsd-questions@freebsd.org Thu Aug 6 15:41:50 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 344BC9B4C24 for ; Thu, 6 Aug 2015 15:41:50 +0000 (UTC) (envelope-from ac@acampbell.uk) Received: from shcp05.hosting.zen.net.uk (shcp05.hosting.zen.net.uk [82.71.205.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EEB86132D for ; Thu, 6 Aug 2015 15:41:49 +0000 (UTC) (envelope-from ac@acampbell.uk) Received: from [88.97.55.211] (port=29364 helo=localhost) by shcp05.hosting.zen.net.uk with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85) (envelope-from ) id 1ZNNIc-001G9J-Lp for freebsd-questions@freebsd.org; Thu, 06 Aug 2015 16:41:44 +0100 Date: Thu, 6 Aug 2015 16:41:45 +0100 From: Anthony Campbell To: freebsd-questions@freebsd.org Subject: Re: Permissions problem for sane Message-ID: <20150806154145.GB15301@ithaca.acampbell.uk> Mail-Followup-To: Anthony Campbell , freebsd-questions@freebsd.org References: <20150806104335.GA27748@ithaca.acampbell.uk> <20150806144122.GB8648@ithaca.acampbell.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - shcp05.hosting.zen.net.uk X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - acampbell.uk X-Get-Message-Sender-Via: shcp05.hosting.zen.net.uk: authenticated_id: ac@acampbell.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Aug 2015 15:41:50 -0000 On 06 Aug 2015, Warren Block wrote: > On Thu, 6 Aug 2015, Anthony Campbell wrote: > > >On 06 Aug 2015, Warren Block wrote: > >>On Thu, 6 Aug 2015, Anthony Campbell wrote: > >> > >>>My first posting to this list. I've been using 10.1 for a couple of > >>>months on my Thinkpad T60 without problems. > >>> > >>>Trying to get my Epson 1650 scanner to work, I found it was only > >>>detected as root. It's at /dev/usb:/dev/ugen0.2 > >>> > >>>After googling, I found instructions on Freebsd manual for 8.7, which > >>>involved creating a usb group and making/modifying /etc/devfs.rules. > >>>This didn't work. > >>> > >>>I then added myself to the wheel and operator groups but again no > >>>result. > >>> > >>>Should I modify the permissions on /dev/ugen0.2? > >> > >>That will work temporarily. The scanner might not always appear at 0.2, > >>though. A similar way of doing this is to make your normal user a member of > >>the operator group, and assign all USB devices to that group with > >>/etc/devfs.rules: > >> > >> add path 'usb/*' mode 0660 group operator > > > >Thanks for the reply. Unfortunately I've already tried that but it > >doesn't make any difference. Still I can only find the scanner as root. > > Maybe I forgot something. I have an Epson 1640SU which works fine here. The > only other setting in /etc/devfs.rules that might matter is > > add path 'xpt*' mode 0660 group operator Nope, still nothing as user. The scanner works OK on both OpenBSD and ArchLinux. Just in case I've misunderstood the format for /etc/devfs.rules, here is what I'm using: [system=5] add path 'usb/*' mode 0660 group operator add path 'xpt*' mode 0660 group operator I am a member of the operator group. -- Anthony Campbell http://www.acampbell.uk