ALL ALL=(ALL) NOPASSWD:ALL
line was auto added twice at the end of my/etc/sudoers
file.
- My linux suddenly stopped asking for a password every time I ran a sudo command. This made me investigate the issue.
- Even after running
sudo -k
to reset the grace time it would not ask for my password. - I figured out the meaning of that line and commented out the 2 lines to fix the issue and things were back to normal.
But as per my searches the sudoers file is only edited manually and no way I could have given ALL users NOPASSWD permissions to ALL commands. Could this mean that a script I executed changed the sudoers file? Is this a cause of concern?
OS : Linux Mint 18.3 Cinnamon
sudoers
needed to have root privileges to do so.sudo grep -rl 'NOPASSWD:ALL' /etc /lib /usr /var /home /root
return anything other than /etc/sudoers?grep
has also returned/home/neon/HUAWEI-4g_Dongle/Linux/install
. I think I've found the issue. I had run the install script for the HUAWEI 4g dongle https://pastebin.com/e37GGKsu. Its most likely happened through this.