Catmaker's Blog

Ramblings of a Robot Cat Maker Wannabee, Because Real Cats Aren't Allowed :P

Posts Tagged ‘ftdi

Ubuntu Serial Converter udev Rules

leave a comment »

On my (recently-updated Oneiric 11.10) desktop Ubuntu, my FTDI-based serial converter just couldn’t be opened by a non-root user, either for the screen command, or the GUI-based terminal application putty. The /dev/ttyUSBxxx device node was instantiated with mode 0660 to owner root:dialout and, even when I’m in the groups dialout, the permissions wouldn’t just let me access it.

My quick-and-dirty solution was to add the below overriding udev rule-file as /etc/udev/rules.d/10-local-override.rules :

# /etc/udev/rules.d/10-local-override.rules
# Local rule to override distribution's rules of putting my
# FTDI-based serial convertor mode to 0666 instead of 0660.
# 
# References:
# http://www.cl.cam.ac.uk/research/dtg/research/wiki/Udev
# http://www.reactivated.net/writing_udev_rules.html
#
KERNEl=="ttyUSB*", MODE="0666"

# Previous attempt, but I use other serial-converters too.
#ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", MODE="0666"

Written by catmaker

2011/10/18 at 11:56

Posted in Uncategorized

Tagged with , , ,