How do I allow a non-default user to use serial device ttyUSB0?
Posted
by
lucaghera
on Ask Ubuntu
See other posts from Ask Ubuntu
or by lucaghera
Published on 2012-03-13T12:04:06Z
Indexed on
2012/12/07
5:22 UTC
Read the original article
Hit count: 165
I have an Ubuntu 11.10 system with 2 users:
- The first was created during the installation
- The second instead was created after. It belongs to the sudoers group.
Now the problem is that when the second tries to use a device ttyUSB0
the following error is returned:
"Could not open serial port /dev/ttyUSB0"
I was able to fix it by using:
sudo chown :second_user /dev/ttyUSB0
However when I disconnect the device and reconnect it the problem comes back.
Is there a way to allow different users to access the devices?
I suppose I have to add the user to a specific group. Currently the owner is root
and the group is dialout
. However I'm not sure about the group and I don't know how to add the user.
Thanks!
© Ask Ubuntu or respective owner