Issue
The cldiag reports:
Check cagefs users can enter cagefs:
FAILED: Command 'unset BASH_ENV; su 'user' -s /bin/bash -c 'echo -n "Logged in as: $(whoami) - $(id -u) "; [ "$(id -u)" == "1011" ] && ls /var/.cagefs'' returned non-zero exit status 1.; Output was: "su: cannot open session: Cannot make/remove an entry for the specified session"
Environment
- CloudLinux OS
- CageFS
Cause & Solution
1. Create missing /var/.cagefs folder and perform and update:
mkdir -p /var/.cagefs
cagefsctl --force-update && cagefsctl -M
2. That error can also be caused by CageFS being unable to find the home directory for the user in the error message. Please make sure the user exists in /etc/passwd. If the home directory is absent, you'll need to set it up:
# mkdir /home/user
# chown user:user /home/user
You can check if the error was corrected by running:
# cldiag --check-cagefs
3. Otherwise you can disable this sanity check with the following command:
cldiag --disable-cron-checkers check-users-can-enter-cagefs
Comments
0 comments
Please sign in to leave a comment.