When I try to
sudo something I get:
" luke is not in the sudoers file. This incident will be reported."
All sudo users have failure in the same way.
How can I get more detailed information about what exactly is failing here? This used to work fine, but somebody else with sudo access has messed around (?) and now sudo doesn't work (although I can su to root and sudo from there fine.)
I've checked /etc/sudoers (contents and permissions all match my default install,
visudo -c reports all is OK)
I am definitely still in the sudo group:
$ getent group sudo sudo:x:27:luke,user2,user3
When I add
luke ALL=(ALL:ALL) ALL
to /etc/sudoers it does let me use sudo. but why can't members of the sudo group use it?
# # 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:/snap/bin" # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command sudo ALL=(ALL:ALL) ALL luke ALL=(ALL:ALL) ALL # See sudoers(5) for more information on "#include" directives: #includedir /etc/sudoers.d
ubuntu 16.04 server edition.