Bugzilla – Bug 864
Make -f optional for path argument
Last modified: 2019-01-12 10:03:49 MST
Currently to invoke visudo against a non-system-default (typically /etc/sudoers) sudoers file (such as /etc/sudoers.d/user_foo), one must do: visudo -f /etc/sudoers.d/user_foo However, being that -f is the only switch that takes an argument AND there is NO default behaviour defined for providing a path as a positional argument (or even a positional argument at all), I suggest that -f be made optional. e.g.: visudo /etc/sudoers.d/user_foo would have the same effect as: visudo -f /etc/sudoers.d/user_foo
Sure, that makes sense now that the JSON conversion code has moved to cvtsudoers. This change will be in sudo 1.8.27: https://www.sudo.ws/repos/sudo/rev/eb3d4c4461ba
Fixed in sudo 1.8.27, out now.