Using a scanner (USB) as user and not as root

Marco Beishuizen mbeis at xs4all.nl
Thu Apr 29 21:55:17 UTC 2010


On Thu, 29 Apr 2010, Warren Block wrote:

> One more problem: there should be a quote at the end of the last line.
>
> attach 100 {
> 	device-name "ugen[0-9].[0-9]";
> 	match "vendor" "0x04b8";
> 	match "product" "0x010a";
> 	action "usb_devaddr=`echo $device-name | sed 's#^ugen##'` && \
> 		chown root:saned /dev/usb/${usb_devaddr}.* && \
> 		chmod 0660 /dev/usb/${usb_devaddr}.*"

Shouldn't there be a ; at the end of the action line also? Because every 
line above ends with it too. I also ended the total attach 100 statement 
with }; because that seems the case in the rest of devd.conf.

To see if these changes work I'll have to reboot later because I'm 
updating my ports, and this can take a while...

Marco

-- 
I was in this prematurely air conditioned supermarket and there were all
these aisles and there were these bathing caps you could buy that had these
kind of Fourth of July plumes on them that were red and yellow and blue and
I wasn't tempted to buy one but I was reminded of the fact that I had been
avoiding the beach.
 		-- Lucinda Childs "Einstein On The Beach"


More information about the freebsd-questions mailing list