Scratch Sensor Board needs access to TTYUSB*

pgf at laptop.org pgf at laptop.org
Fri Sep 12 09:29:13 EDT 2008


c. scott ananian wrote:
 > On Thu, Sep 11, 2008 at 5:50 PM, John Maloney <jmaloney at media.mit.edu> wrote:
 > > To use the Scratch Sensor Board or Pico Sensor Board
 > > (http://scratch.wik.is/Support/Sensor_Boards), you must add a file to the
 > > folder:
 > >
 > > /etc/udev/rules.d
 > >
 > > This file should contain the single line:
 > >
 > > KERNEL=="ttyUSB*", MODE="0666"
 > >
 > > Adding this file allows Scratch to read and write data to the sensor board.
 > > You will need to make yourself root using the "su" command in order to add a
 > > file to that folder.
 > 
 > Isn't the traditional thing to have the tty* devices owned by the
 > serial group (uucp or dialout group if you're a real old-timer) and
 > then set certain users to be members of that group?  It seems like you
 > really want scratch's UID to be a member of the 'serial' group.
 > Michael?

but this would only solve the problem for scratch, and not for
other activities and legacy programs that want to use USB serial. 
you're suggesting that every activity that might need access to
a serial port be modifide?

(frankly, the restriction on device access to specific groups only
makes sense when those devices are "important" in some way. 
since the user is free to unplug and discard this device, i
hardly think it matters if they use it as intended.)

paul
=---------------------
 paul fox, pgf at laptop.org


More information about the Devel mailing list