Werk #22369: mk_podman: Fix CLI method for users without a login shell
| Component | Checks & agents | ||
| Title | mk_podman: Fix CLI method for users without a login shell | ||
| Date | Oct 29, 2026 | ||
| Level | Trivial Change | ||
| Class | Bug Fix | ||
| Compatibility | Compatible - no manual interaction needed | ||
| Checkmk versions & editions |
|
If you use the connection method CLI (Podman command) in the rule
Podman hosts and containers (Linux), the agent plug-in mk_podman runs
podman as the owner of each container via su. Previously, su used the
login shell of this user. Service users often have /usr/sbin/nologin or
/bin/false as their login shell. For these users the command failed, and
the plug-in did not report their containers.
The plug-in now uses /bin/sh if the login shell of the user is not listed
in /etc/shells. All other users keep their own login shell, as before.
To get the fix, redeploy the agent plug-in on the affected hosts.