Permissions problem for sane

Warren Block wblock at wonkity.com
Thu Aug 6 16:42:26 UTC 2015


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.


More information about the freebsd-questions mailing list