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"
The error in question may be caused by orphaned JailShell mounts. For example; An orphaned mount could have been caused if the users' shell was recently modified or if an SSH connection was closed unexpectedly thus leaving an orphaned virtfs mount for Jailshell.
For the user in question, execute the following command where "USER" is the cPanel username:
/scripts/clear_orphaned_virtfs_mounts --user=USER --clearall