Ubuntu 26.04 does not allow Regex in sudoers-files, here we trust the script handling all parameters right.

This commit is contained in:
m8in committed 2026-10-26 21:06:48 +01:00
1 parent dab642f925
commit b95bc2f1cc
1 file changed
+2 -10
@@ -1,10 +1,2 @@
# Definition: 3 mandantory parameter, 4. and 5. are optional # Script sync-send.sh was designed to reject invalid parameters.
# [[:space:]]+ -> Expects at least on space character composition-sync ALL = (root) NOPASSWD: /cis/script/host/zfs/composition-sync/sync-send.sh
# ( ... )? -> defines the group as optional
Cmnd_Alias C_COMPOSITION_SYNC = \
/cis/script/host/zfs/composition-sync/sync-send.sh \
^[a-zA-Z][a-zA-Z0-9_-]* \
[a-zA-Z][a-zA-Z0-9.-]* \
@[a-zA-Z0-9._:-]* \
([a-zA-Z0-9][a-zA-Z0-9._:-]*)?$
composition-sync ALL = (root) NOPASSWD: C_COMPOSITION_SYNC