Cannot open /dev/ttyS0: Permission denied问题
今天在工控机的ubuntu16.04上运行Serial port terminal出现了Cannot open /dev/ttyS0: Permission denied提示字样。
问题原因:本用户没有打开串口权限。
解决方法:
1.由于tty属于“dialout”组别,比如用户名是HY,先命令查看下用户隶属的组别groups HY
2.如果没有隶属“dialout”,那么把用户加入进去sudo gpasswd --add HYdialout
3.logout 再登录系统激活功能。
问题解决。