sudo usermod -a -G <group1>,<group2>,... $USER
Example:
sudo usermod -a -G dialout,tty $USER
sudo reboot 0