I've got Debian Buster/10 x86_64 in a VirtualBox VM for testing GCC 7. The Desktop is LXDE (don't select this in real life unless you are OK with SSH access; LXDE does not work in real life on Buster). I think the OS is really Debian 9 with Testing enabled.
I added myself to
adm groups. There are no
# id jwalton uid=1000(jwalton) gid=1000(jwalton) groups=1000(jwalton),4(adm),24(cdrom),25(floppy),27(sudo), 29(audio),30(dip),44(video),46(plugdev),108(netdev),113(bluetooth),114(lpadmin),118(scanner)
I also uncommented the
sudo group line in the sudoers file:
# cat /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Allow members of group sudo to execute any command sudo ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d
I rebooted the machine. When I attempt to
$ sudo apt-get install emacs-nox jwalton is not in the sudoers file. This incident will be reported.
I went through the man page, but nothing jumped out at me as being bent. But its a large manual page, and I may have missed something obvious.
Why can't I
sudo? What's wrong with my configuration?