Re: drilling down a parser error in file near line X.
"Todd C. Miller via sudo-users" <[email protected]> Fri, 13 Sep 2024 12:07:20 -0600
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 13 Sep 2024 17:24:08 -0000, Randall Badilla Castro wrote:
> Hi Todd; thanks a lot by your replay.
> I run grep against /etc/sudoers and every file on /etc/sudoers.d.
> Just /etc/sudoers.d/sudoers_BEL had DMSETUP "configured". Then
> reviewed with visudo -f [every file] and confirm DMSETUP just
> existed on the mentioned sudoers file.
It must either be defined elsewhere or /etc/sudoers.d/sudoers_BEL
must be getting included more than once.
> About your question of visudo -c; yes the messages were :
> /etc/sudoers.d/sudoers_BEL: Alias "DMSETUP" already defined near line 69 <<<
There is enough info for sudo to provide a better error message to
help track this kind of problem down. I just committed a change
to make this error look more like:
/etc/sudoers.d/sudoers_BEL:69:35: duplicate Cmnd_Alias "DMSETUP",
previously defined at /etc/sudoers:50:12
which should help in the future.
You could build the latest sudo sources from GitHub and, without
even installing it, run "./plugins/sudoers/visudo -c" from the build
directory and see if the improved error output helps you track down
the problem.
- todd
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users