Add User to a Group
If you have removed yourself from a group, you can use the following to add yourself again. Please note that you can usually use RecoveryMode and run the adduser command directly.
- Boot the Ubuntu Live CD.
Press Ctrl-Alt-F1
sudo mount /dev/sda1 /mnt
sudo chroot /mnt
adduser username groupname