Some time ago I had this problem and I found a workaround by issuing following command
sudo chmod 777 /dev/dri/card0
and leaving me with this bug.
I have been struggling to fix it for a week. Today I ran
groups $USER
it printed
kenn : www-data wheel
I thought that it would be a good idea to add current user into other groups, so I ran
sudo usermod -G adm,disk,mail,cdrom,floppy,sudo,audio,dip,video,plugdev,fuse,lpadmin,netdev,sambashare,debian-tor,wireshark kenn
I logged out and logged in but it did nothing. So I wanted to revert changes I made and deleted groups I added to current user by
sudo usermod -G www-data,wheel kenn
it supposedly reverted the change, I checked again
groups $USER
kenn : www-data wheel
But when I logged out I could not log in.
I logged in and opened terminal but now I can not run command with sudo
I get Sorry, user kenn is not allowed to execute '/usr/sbin/adduser as root on kenn
How can I revert changes I caused?
How can I add current user to adm and sudo groups?
EDIT:
I managed to add myself to sudo and adm group from root account. And then ran
sudo usermod -aG adm,disk,mail,cdrom,floppy,sudo,audio,dip,video,plugdev,fuse,lpadmin,netdev,sambashare,debian-tor,wireshark kenn
But I don't know which more ones to add
I still dont understand what I did wrong.
It must be related to usermod -G switch instead of usermod -aG
id
returns
uid=1000(kenn) gid=33(www-data) groups=33(www-data),4(adm),6(disk),8(mail),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),104(fuse),108(lpadmin),109(netdev),124(sambashare),129(debian-tor),148(wireshark),1010(wheel)
I need to know default groups that any admin account must have