Note:
Some system configurations will run properly with cron inside an LXC container. Individual cron jobs fail to execute even though the cron daemon is active. This issue is a direct result of the incompatibility between the container environment and the pam_loginuid
module.
To resolve this conflict, disable the pam_loginuid
module for cron with the following comment in the /etc/pam.d/crond
directory:
#
# The PAM configuration file for the cron daemon
#
#
# No PAM authentication called, auth modules not needed
account required pam_access.so
account include password-auth
#session required pam_loginuid.so
session include password-auth
auth include password-auth
Updates to your cron package may cause the service to reactivate. Inspect this file for changes after each system update.