How can I use "/dev/ttyUSB0" with normal user privileges rather than root privileges?

Hardware Platform : Jetson Nano
DeepStream Version : 5.1
JetPack Version : 4.5.1


I’m testing my USBtoRS485 device in deepstream-app using “/dev/ttyUSB0” .

When I run my rs485 app with root privileges, it works very well. ( $sudo ./myrs485test )
However, if I run the app as a general user, I cannot open the USBtoRS485 device within my app. ($ ./myrs485test)

How can I use “/dev/ttyUSB0” with normal user privileges rather than root privileges?

hello sanzarak,

please check the node with this command, $ ll /dev/ttyUSB0

FYI,
when serial console is running on a UART, then the group name is tty, but if free for use by other software, then the group name is dialout.
so,
please have a try to add your regular user to the group dialout, then you won’t need sudo to use UART.
thanks

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.