I typed sudo su in the terminal, and it changed to root without asking for a password. I also tried typing sudo apt-get upgrade and it didn't ask for a password either. When I installed Unity (1 hr ago) it asked for a password with the usual [sudo] password for proc-daemon: .
In case it is my /etc/sudoers, I have posted it here (without comments):
root ALL=(ALL:ALL) ALL
%admin ALL=(ALL) ALL
%sudo ALL=(ALL:ALL) ALL
#includedir /etc/sudoers.d
As you can see, nowhere is there proc-daemon ALL=(ALL:ALL) NOPASSWD:ALL.
Why is this happening?
I have XUbuntu 15.10 with Unity.
EDIT:
As requested in a comment, sudo -l outputted:
Matching Defaults entries for proc-daemon on Exitron2000:
env_reset, mail_badpass,
secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\: /sbin\:/bin
User proc-daemon may run the following commands on Exitron2000:
(ALL : ALL) ALL
For some reason, sudo -l did ask for a password.
EDIT 2:
sudo -k made it go back to normal.
sudo -l. – muru Dec 28 '15 at 18:34sudo -l? – NoOneIsHere Dec 28 '15 at 18:39sudo -ldisplays what sudo privileges you currently have. Try runningsudo -kand thensudo -l. – muru Dec 28 '15 at 18:39sudo -kdid nothing andsudo -ldid the same thing as before. – NoOneIsHere Dec 28 '15 at 18:48sudo -kdoes nothing visible. It resets your sudo timeout. – muru Dec 28 '15 at 18:50sudo -kand thensudo su, it asked for my password. How to I mark this as answered? – NoOneIsHere Dec 28 '15 at 18:57