Symptoms
You are seeing one of the following errors or a similar one:
Can't exec "/usr/sbin/sendmail": No such file or directory
su: failed to execute /bin/bash: No such file or directory
cagefs_enter_user: /bin/bash: No such file or directory
Description
One of the cause for this issue is a broken cpanel-wrap package.
# /usr/local/cpanel/scripts/check_cpanel_rpms
[2021-06-13 01:40:04 -0300]
[2021-06-13 01:40:04 -0300] Problems were detected with cPanel-provided files which are RPM controlled.
[2021-06-13 01:40:04 -0300] If you did not make these changes intentionally, you can correct them by running:
[2021-06-13 01:40:04 -0300]
[2021-06-13 01:40:04 -0300] > /usr/local/cpanel/scripts/check_cpanel_rpms --fix
[2021-06-13 01:40:04 -0300]
[2021-06-13 01:40:04 -0300] The following files were found to be altered from their original RPM:
[2021-06-13 01:40:04 -0300] cpanel-wrap,92.0,2.cp1192
Workaround
Run the check cPanel rpm script to verify and fix if you are impacted by this issue.
/usr/local/cpanel/scripts/check_cpanel_rpms --fix
If the script detected an issue with the cpanel-wrap package and reinstalled the package, you need to rebuild CageFS.