Adding dialout group to user in order to open /dev/ttyUSB0
I am trying to open /dev/ttyUSB0 via a python script.
When I run the script, I get the fault "serial.serialutil.SerialException: could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'.
I guess that this is because the group dialout is not assigned to the user.
I have tried using the "$ sudo usermod -a -G dialout keglud" command, but the dialout group is not shown when typing "$ groups"
Can anyone help?