Editing sudoers Safely
Why should you edit sudo rules with visudo (or files in /etc/sudoers.d/ via visudo -f)?
visudo
/etc/sudoers.d/
visudo -f
Choose one answer
It reloads sudo, which otherwise needs a reboot before it sees changed rules.
It encrypts the file so other users can't read the rules.
It's the only editor that can open files owned by root.
It checks the syntax before saving the file.