Thread: Serial Port?
View Single Post
Old 22 February 2017, 19:49   #3
alkis
Registered User

 
Join Date: Dec 2010
Location: Athens/Greece
Age: 50
Posts: 649
I'll show a case with /dev/ttyS0 , replace with your device

Code:
ls >/dev/ttyS0
ls: write error: Input/output error

ls -l /dev/ttyS0
crw-rw----+ 1 root dialout 4, 64 Feb 22 19:28 /dev/ttyS0
Ok, only root and whoever is in the group "dialout" can access the device.
My user is "alex" so...

Code:
sudo usermod -a -G dialout alex
now "alex" is in the "dialout" group. Logout and login and you should be ok.
alkis is offline  
 
Page generated in 0.04909 seconds with 11 queries