I need to edit /etc/sudoers from a script to add/remove stuff from white lists.
/etc/sudoers
Assuming I have a command that would work on a normal file, how could I
visudo is supposed to be the human interface for editing /etc/sudoers. You can achieve the same by replacing the file directly, but you have to take care yourself about concurrent editing and syntax validation. Mind the r--r----- permissions.
r--r-----