How To Fix ‘Not In Sudoers File’ in Debian 12 Bookworm

After logging into Debian 12 Bookworm, if you try running different commands using sudo, you will see an error that is something like this. For that, you will have to edit the sudoers file. To do that, first switch to the root account by typing in the Terminal: su root After switching to root, edit the sudoers file that is found in /etc. You can open it with any text editor like vi...