If you are using fedora,
Changing permissions with the following (as root) will only remain
accessable to other users as long as usb device is connected. If usb
device is removed or pc reboots, all permissions are reset to root.
chmod a=+xrw /dev/ttySO (if using serial)
chmod a=+xrw /dev/ttyUSB0 (if using USB)


www.jpilot.org/pipermail/jpilot/2005-July/005210.html
explains how to edit udev rules such that permission can be set for all
users.

vi /etc/udev/rules.d/50-udev.rules

change 
KERNEL=="ttyS*",                GROUP="uucp", MODE="0666"
to 
KERNEL=="ttyS*",                GROUP="uucp", MODE="0660"
and the same for
KERNEL=="ttyUSB*",              GROUP="uucp", MODE="0666"

NOTE: I dont know what security risks there are using these permissions.
hope this helps,
Cormac

On Sat, 2006-08-26 at 12:49 +0800, Lau Ming Leong wrote:
> How can I add myself to the uucp group? I have run this command "chmod
> 777 /dev/ttyUSB0". Is it correct?
> 
> On 8/26/06, David Gay <[EMAIL PROTECTED]> wrote:
>         On 8/25/06, Ming <[EMAIL PROTECTED]> wrote:
>         > I follow the steps, but there is also have problems.
>         >
>         > When I use "serial@/dev/ttyUSB0:telosb", follow error is
>         appeared.
>         >
>         > serial@/dev/ttyUSB0:57600 died - restarting
>         ( java.io.IOException : Couldn't
>         > configure /dev/ttyUSB0)
>         
>         Do you have write access to /dev/ttyUSB0? (the easiest way to
>         ensure
>         this is typically to add yourself to the uucp group)
>         
>         David Gay
> 

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to