visudo enhancement to edit-syntax-check arbitrary files

Bob Proulx rwp at hprwp.fc.hp.com
Fri Dec 14 16:02:35 EST 2001


Todd

> 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

ll /etc/sudoers
-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

Thanks
Bob



More information about the sudo-workers mailing list