Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to communicate with an Arduino from Ubuntu 12.04. When plugging in the USB cable, the arduino's serial port occurs as /dev/ttyUSB0. When I try to connect to it using moserial, I'm getting an "Could not open device /dev/ttyUSB0" error, but not when I launch moserial using sudo. What I have to configure to make the serial device accessible as normal non-root user?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

You most likely have ConsoleKit running in Ubuntu, which can automatically configure device permissions according to udev rules.

Add the following to /etc/udev/rules.d/60-extra-acl.rules1:

KERNEL="ttyUSB[0-9]*", TAG+="udev-acl", TAG+="uaccess"

(1Yes, create the file. It doesn't exist by default.)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.