I want to add a new user to run all commands without a password, so I went to edit /etc/sudoers (using visudo of course) by adding the line myuser ALL=NOPASSWD: ALL.
Everything is OK, but 15 minutes later, the file sudoers was reset to original. It means the sudoers file didn't have anything that I had typed in it previously.
Ex: the first sudoers:
root ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: ALL
ALL ALL=NOPASSWD: ALL
After adding line:
root ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: ALL
ALL ALL=NOPASSWD: ALL
myuser ALL=NOPASSWD: ALL
But 15 minutes later:
root ALL=(ALL) ALL
%wheel ALL=(ALL) NOPASSWD: ALL
ALL ALL=NOPASSWD: ALL
So why does it have to be reset after 15 minutes and how to fix it?