Command

This executable can run non-interactive system commands.
  1. Comment

    This executes the command twice:

    • /path/to/command 0 xxx
    • /path/to/command 1 xxx

    Additionally the Test file is created.

    This function can be performed by any unprivileged user.
    echo 'Rule Jordan 0 1 xxx Jan lastSun 2 1:00d -' >/path/to/temp-file
    echo 'Zone Test 2:00 Jordan CE%sT' >>/path/to/temp-file
    zic -d . -y /path/to/command /path/to/temp-file
    This function is performed by the privileged user if executed via sudo because the acquired privileges are not dropped.
    RemarksIf there are environment variables involved, they must be passed via sudo VAR=value ... or exported then sudo -E ....
    echo 'Rule Jordan 0 1 xxx Jan lastSun 2 1:00d -' >/path/to/temp-file
    echo 'Zone Test 2:00 Jordan CE%sT' >>/path/to/temp-file
    zic -d . -y /path/to/command /path/to/temp-file
    This function is performed by the privileged user if the executable has the SUID bit set and the right ownership because the effective privileges are not dropped.
    echo 'Rule Jordan 0 1 xxx Jan lastSun 2 1:00d -' >/path/to/temp-file
    echo 'Zone Test 2:00 Jordan CE%sT' >>/path/to/temp-file
    zic -d . -y /path/to/command /path/to/temp-file