I was trying to edit the sudoers file using visudo in new Ubuntu system. The default editor was set to nano as usual.

After making the changes, when I went to save the file using Ctrl+O, I noticed that it was writing it out to /etc/sudoers.tmp file instead of /etc/sudoers file.

The explanation of why it was this way was interesting. I had never really put any thought to this earlier.

Continue reading