# Definition: 2 mandantory parameter, 3. and 4. are optional
# [[:space:]]+        -> Expects at least on space character
# ( ... )?            -> defines the group as optional
Cmnd_Alias C_COMPOSITION_SYNC = \
    /cis/script/host/zfs/composition-sync/sync-send.sh \
        ^[a-zA-Z0-9][a-zA-Z0-9._-]* \
         [a-zA-Z0-9][a-zA-Z0-9_-]* \
        ([a-zA-Z0-9][a-zA-Z0-9._:-]*)? \
        ([a-zA-Z0-9][a-zA-Z0-9._:-]*)?$
composition-sync ALL = (root) NOPASSWD: C_COMPOSITION_SYNC