Lost chown command on ttyUSB0 after reboot

I use a few programs that needs ttyUSB0 and ttyUSB1.

To get access on both I run the commands:

sudo useradd -G dialout username
sudo chown username /dev/ttyUSB0
sudo chown username /dev/ttyUSB1
sudo usermod -a -G dialout username

I used other distros (debian based, red hat based) and works fine!

But, in Arch based distros (I tested a few), on every boot the system “lost” the chown command only in ttyUSB0, then I need to run again the command, and I am not happy with this.

Why this occurs?

Add your user to the uucp group and re-login for the change to take effect.

EDIT:
https://wiki.archlinux.org/title/Arduino
https://wiki.archlinux.org/title/Users_and_groups#Group_management

1 Like

This is Ubuntu like way. On Arch family you need add yourself to uucp group - and that’s all you need.

How I do this?

Add your user to the group then log out and back in.

sudo gpasswd -a $USER uucp

EDIT:

Added a couple of links to my first post.

I think it works, thanks a lot!

1 Like

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