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
Old thread, but what about:
echo 'foobar ALL=(ALL:ALL) ALL' | sudo EDITOR='tee -a' visudo