Werk #18695: mk-job: Allow non-root users to create output directories

Component Checks & agents
Title mk-job: Allow non-root users to create output directories
Date Oct 22, 2025
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.5.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.4.0p15 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

The mk-job script now attempts to create output directories for all users, not just root. This change allows non-root users to run the mk-job script without requiring root privileges to create missing output directories, improving overall usability.

If the script fails to create the output directory due to insufficient permissions, it displays the updated error message: "Unable to create output directory." In this case, users should ensure they have the necessary permissions or create the directory manually.

To the list of all Werks