PuTTY - Unable to open connection to /dev/ttyUSB0: ....Permission denied

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)

but I keep getting:

Permission are:

kbbn7studio:/dev # ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Sep  2 11:20 /dev/ttyUSB0

Does this mean I’m still forced to logout or is there additional steps needed?

@nasheayahu:

Please take a look at the directory ‘/dev/’ –

I suspect that, you’ll not find a device named “ttyUSB0” …

However, there are, usually, the devices ttyS0 … ttyS31 …

Please check your PuTTY configuration – <https://the.earth.li/~sgtatham/putty/0.79/htmldoc/Chapter4.html#config-ssh-tty>

1 Like

You think that what he shows is fake?

kbbn7studio:/dev # ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Sep  2 11:20 /dev/ttyUSB0
1 Like

That is nonsense.

No such device on this Leap 15.5 system –

 > 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)
 >

But the OP shows clearly he has it on his 15.4 system.

It probably is created by udevd when an USB device that supports data communication ports is connected.

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.

1 Like

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)
1 Like

@dcurtisfra: Then you don’t have such a device present (it is created dynamically by the supporting usbserial module).