On Wed, Mar 28, 2012 at 10:09 PM, Michael Biebl <[email protected]> wrote:
> Why 0666 if it's group-owned?
Make it 0660. I was just cut and pasting it from the Adafruit's website.
> I'm not sure yet, if dialout is the appropriate group for this purpose,
> or if we should use another existing group, or create a new one.
I choose dialout since that is the group used for generic USB to
Serial converters, FTDI USB chips, and Arduinos:
This is a generic USB to Serial converter
crw-rw---- 1 root dialout 188, 0 2012-03-29 11:24 /dev/ttyUSB0
This is an Arduino Uno
crw-rw---- 1 root dialout 166, 0 2012-03-29 11:35 /dev/ttyACM0
>
> The alternative would be, to just use 0666 and don't bother with group
> member ships at all or use something like consolekit, which applies ACLs
> for currently active users automatically (although for a programmer this
> is probably not ideal)
>
> Marco, any suggestion which group would be suitable for that or how to
> deal with that gnerally?
>
> In general, I think the idea is fine.
> Given that USBtinyISP is not the only USB programmer, we'd probably need
> to extend that udev rules file for new devices [1], unless there is a
> way to generically detect if the attached device is a programmer.
Yes, extending the udev files is needed. If all programmers had some
common string we could look for in ATTR{product}, then we could (for
example the words avr and programmer). But I don't know of an easy
way.
~Scott
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]