>> While I wouldn't mind an answer to that question, it's actually
>> working; however, my program that uses libftdi & libusb to talk to my
>> ugen still needs to run as sudo to see the device - but if I run chmod
>> 666 /dev/* (which I'm sure is a bad idea), I don't need sudo; what
>> device is required for libusb besides ugen?  The hub?
>
> It will need access to /dev/usb*
>
> My solution was to create a group called 'usb', adding my user-id as a
> member, and set that as the group of /dev/usb*, with permissions 0660:
>
> ------- /etc/devfs.rules excerpt -------
> [myrules=10]
> add path 'uscanner*' mode 0660 group usb
> add path 'usb*' mode 0660 group usb
> add path 'ugen*' mode 0660 group usb
> ------- /etc/devfs.rules excerpt -------
>
> ------- /etc/rc.conf excerpt -------
> # Set the default devfs ruleset.
> devfs_system_ruleset="myrules"
> ------- /etc/rc.conf excerpt -------

Ah!  Perfect, that was the ticket - I didn't have permissions for the
usb device, even though I had permissions for ugen.  Should've
occurred to me sooner.  Been running it under sudo for a few weeks
now...

Thanks, Roland,

Steve
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to