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. – Chris Davies Aug 16 '18 at 11:32sudo grep -rl 'NOPASSWD:ALL' /etc /lib /usr /var /home /root
return anything other than /etc/sudoers? – Chris Davies Aug 16 '18 at 12:16sudo grep -rl 'NOPASSWD:ALL' /etc /lib /usr /var /home /root
has returned the following as of now:/etc/sudoers /usr/lib/snapd/snapd /var/log/auth.log
– Neon44 Aug 16 '18 at 15:10grep
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. – Neon44 Aug 16 '18 at 15:25