The following man page states that, "sudo allows shell-style wildcards (aka meta or glob characters) to be used in host names, path names and command line arguments in the sudoers file."
https://linux.die.net/man/5/sudoers
I've added the following to my sudoers file which allows the support user to start the Postfix service.
support ALL=NOPASSWD: /bin/systemctl start postfix
Instead of adding multiple commands for each start, stop, restart action, I thought that I'd try to use globbing to match each case. Using https://www.digitalocean.com/community/tools/glob I came up with the glob string below.
Unfortunately this doesn't work. No syntax errors are generated, so that's good.
Does anyone have any ideas that I could try?
sudoers
file are standard globbing patterns (not?(...)
,*(...)
,+(...)
,@(...)
).