Closed trackers-lover closed 6 months ago
The sudoers parser is somewhat complicated. The actual parser is written using flex and yacc (or bison) and is found in plugins/sudoers/toke.l and plugins/sudoers/gram.y. If you are not familiar with those tools it may be hard to understand. The actual rule evaluation is performed separately in plugins/sudoers/lookup.c.
Hello, I have created a test user and joined the wheel group, so that I can be authorized. I want to know where to parse the "% wheel ALL=(ALL) ALL" line in the sudoers file in the sudo source code? Thank you, teacher.