linux - How do I edit /etc/sudoers from a script?
I need to edit /etc/sudoers from a script to add/remove stuff from white lists.

Old thread, but what about:
echo 'foobar ALL=(ALL:ALL) ALL' | sudo EDITOR='tee -a' visudo

