[Solved] just had to log out and back in Original post: I’m running Debian 12 and I set a separate root password from my username password.
When trying to install a .deb file I noticed that it said I was not in sudoers file so I looked it up and tried the command SU and successfully entered my root password.
The I tried doing
sudo usermod -aG sudo [username]
And then I verify the addition of the user to the sudo group with
groups [username]
And this does indeed show that I am in the sudo group however when I try to install a .deb file after that or even sudo apt update its still telling me I am not in sudoers list.
Any ideas what I’m doing wrong here?
- You may need to log out and log back in for the addition of the sudo group to take effect. - The default config sudo should be fine, but if the above doesn’t work then you may also want to look up “visudo” to check/modify the sudo config. - Yes, you do have to log out for group changes to take effect. 
- This worked thank you so much! 
 
- Nodoer 
- Yup, that happened to me once. - /shitpost, sorry 
- Group changes require a relog of the user. 



