Symptoms
When setting the shell for a user, the following error will occur if you set JailShell:
Could not exec shell '/usr/bin/bash' with errno = 2"
Description
The error in question may be caused by orphaned JailShell mounts.For example, an orphaned mount could have been caused by the user's shell being recently modified or an SSH connection being closed unexpectedly, thus leaving an orphaned virtfs mount for Jailshell.
Workaround
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Execute the following command for the affected user.
/scripts/clear_orphaned_virtfs_mounts --user=$user --clearall
Please note that "$user" must be replaced with the cPanel username of the affected user.
Comments
0 comments
Article is closed for comments.