This issue popped up about a week ago, not sure what caused it. Previously the environment had been working as expected. Using a VM hosted on VMWare tools, uname -a returns roughly the following.
-virtual-machine 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
For example, sudo su root returns
"Sorry, user linuxUser is not allowed to execute '/bin/su root' as root on linuxUser-virtual-machine."
sudo apt-get install vim
"Sorry, user linuxUser is not allowed to execute '/usr/bin/apt-get install vim' as root on linuxUser-virtual-machine".
However I can execute commands as linuxUser, like ls -la or vim.
id returns the following
uid=1000(linuxUser) gid=1000(linuxUser) groups=1000(linuxUser),999(docker)
What I've tried
- editing sudodoers, I can't modify the file because I don't have root access
- Changing linuxUser's password, had no effect
I've googled around pretty heavily on this, but it seems like most users are either still able to execute sudo commands or are still able to switch to root. Any ideas?
sudo -l -U linuxUser returns the following
Matching Defaults entries for linuxUser on linuxUser-virtual-machine: env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin\:/snap/bin User linuxUser may run the following commands on linuxUser-virtual-machine: (root) NOPASSWD: /usr/lib/linuxmint/mintUpdate/checkAPT.py
POSTMORTEM EDIT: Hey All, I fixed the issue with https://askubuntu.com/questions/70442/how-do-i-add-myself-back-as-a-sudo-user. Thanks for the help!