Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2015 10:42:07 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        Anthony Campbell <ac@acampbell.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Permissions problem for sane
Message-ID:  <alpine.BSF.2.20.1508061038480.550@wonkity.com>
In-Reply-To: <20150806154145.GB15301@ithaca.acampbell.uk>
References:  <20150806104335.GA27748@ithaca.acampbell.uk> <alpine.BSF.2.20.1508060632230.39988@wonkity.com> <20150806144122.GB8648@ithaca.acampbell.uk> <alpine.BSF.2.20.1508060916220.84426@wonkity.com> <20150806154145.GB15301@ithaca.acampbell.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 6 Aug 2015, Anthony Campbell wrote:

> 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.

Okay, let's compare.  I have

/usr/local/etc/sane.d/epson.conf
# WB
usb 0x04b8 0x010a

/etc/devfs.conf
perm    xpt0    0660

/etc/devfs.rules
# WB
[localrules=10]
add path 'ugen*' mode 0660 group operator
add path 'usb/*' mode 0660 group operator
add path 'xpt*' mode 0660 group operator

Maybe that ugen entry is important.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1508061038480.550>