You can (backup and then) write* to it since it's just text/plain.
After writing execute "visudo -s -c -f /etc/sudoers" and check the exit status.
* I mean visudo uses the VISUAL or EDITOR envvar, so yeah, you can probably set it to "vi" and make it execute a script, but what's the added value of doing that?..
Last edited by unSpawn; 02-27-2007 at 08:04 AM.
|