sudo adduser $USER dialout (where $USER is your user name)
newgrp dialout (this will reload the permissions for dialout group)
--
You received this message because you are subscribed to the Google Groups "ros-by-example" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-by-exampl...@googlegroups.com.
Visit this group at http://groups.google.com/group/ros-by-example.
For more options, visit https://groups.google.com/groups/opt_out.
# check usb connection
$ ls /dev/ttyUSB*
# look for my user name
$ whoami
# verify if I am part of dialout group
$ groups
# once verified (otherwise add user to group)
# verify permissions
$ ls -l /dev/ttyUSB0
# in my case root gives permissions
# so change to my user_name
$ sudo chown user_name /dev/ttyUSB0
# chown command changes the user_name and/or group ownership for given file
$ chmod 0600 /dev/ttyUSB0
# chmod command change the access mode to the file.
# verify again
$ ls -l /dev/ttyUSB0
# now user_name has permissions