visudo enhancement to edit-syntax-check arbitrary files
rwp at hprwp.fc.hp.com
Fri Dec 14 16:02:35 EST 2001
> Well, visudo doesn't require you to be root. The file permissions
> on the sudoers file generally do though:
> xerxes % visudo
> visudo: /etc/sudoers: Permission denied
This I expect.
> xerxes % visudo -c
> /etc/sudoers file parsed OK
-r--r----- 1 root root 10898 Dec 11 04:17 /etc/sudoers
Are you running visudo as group 'root' such that you can read the
file? It triggers a question of how that works since it doesn't seem
like it should.
But it poses a new question. Will the new -f and -c options combine
so that this works?
visudo -c -f /tmp/sudoers.tmp
More information about the sudo-workers