Connect to /dev/ttyUSB0 without sudo

Hi, I want to communicate with an USB/serial device. I need to use sudo to make it work.

On Ubuntu I add an udev rule with the plugdev group, but this group doesn’t exist in Arch.

I created an udev rule, just without GROUP=“plugdev”, but I still have to use sudo.

How can I enable the user to use the com port without sudo?

  1. Check which group owns this device.
    ls -la /dev/ttyUSB0
    For me it is uucp group.

  2. Become part of this group.
    sudo usermod -a -G uucp $USER

  3. Log-out and back in.

Now you should have read/write access to this device.

2 Likes

log out and log in does the trick. :man_facepalming:

Thanks for the help

1 Like

If your issue, as per the title of the topic, is resolved to your satisfaction, please consider checking the solution box under the appropriate post pointing out the solution.

In this way, the forum software will regard the thread as solved and other users with similar issue will find the solution more easily.

:enos_flag:

2 Likes

Glad you got your solution so fast. They are pretty smart here.

I just wanted to take the time to welcome you @rustasian aboard the good ship :enos:

1 Like

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