With Yast I added additional groups to my user account, but mainly the dialout group. I have so many apps open and do not want to close everything and logout to update the changes. I did a
su - $USER
and confirmed the update BEFORE:
nasheayahu@kbbn7studio:~> id
uid=1000(nasheayahu) gid=100(users) groups=100(users),42(trusted)
AFTER:
nasheayahu@kbbn7studio:~> id
uid=1000(nasheayahu) gid=100(users) groups=100(users),36(kvm),42(trusted),107(qemu),108(libvirt),462(wireshark),474(audit),476(flatpak),477(pulse),478(pulse-access),483(video),489(disk),490(dialout),491(cdrom),492(audio),494(kmem)
> LANG=C l /dev/ttyU*
ls: cannot access '/dev/ttyU*': No such file or directory
> file /dev/ttyUSB0
/dev/ttyUSB0: cannot open `/dev/ttyUSB0' (No such file or directory)
>
It is rather unclear how you started PuTTY in the first place. If PuTTY was started from your desktop environment menu (not from the terminal where you executed the second id command) - yes, you need to logout and login to apply new group membership.
I don’t use Putty but I use Minicom with usb to serial converter so I think we are in similar situation.
I add my user to the following groups :
dialout
lock
uucp (maybe this group is not really necessary. I had to add it in the past when I used VMware Player and I wanted to use usb to serial thru virtual machine)