Change ttyUSB permissions using udev

后端 未结 1 463
孤街浪徒
孤街浪徒 2021-01-25 16:22

My program needs to access ttyUSB without root permission.

I tried changing it with chmod 777 /dev/ttyUSB0 as you know, when I reboot this perm

1条回答
  •  情歌与酒
    2021-01-25 16:26

    Look for ttyUSB* in the rules.d directory and update it to look lke below:

    KERNEL=="ttyUSB*", MODE="0777"
    

    Leave any other entries you find on the line unchanged, add the mode attribute if it does not exist.

    0 讨论(0)
提交回复
热议问题