From Mageia wiki
It'd be better to suggest people create a new file under /etc/sudoers.d than use visudo to edit /etc/sudoers directly.
If the sudoers file in the package ever changes and they have edited it, they'll have to merge their changes into the sudoers.rpmnew file that will get created. Dropping a new file in /etc/sudoers.d things will just continue to work automatically without requring any intervention.
I'm not sure if there's a way to override the Defaults requiretty line in sudoers without editing that though, so maybe it's still needed?
Hi, the file in /etc/sudoers.d is a good idea and it works well.