I've set up a number of different users which each have their own jail directory. Inside this jailed directory they each have all the binaries and libraries they need copied over. SSH access is working for these users by using a Match block and using the ChrootDirectory
option.
Since enabling this all my regular users are getting /bin/bash permission denied. I've checked the permissions on all the directories including /
, /bin
and the user's home directory. All seem to be okay.
I've also tried copying the binaries to the regular user directory just in case the match block isn't working correctly, however this did not make any difference.
When connecting over SSH the MOTD is displayed and then the permission denied message is displayed.
/bin/bash
exist in an executable state in the jail? What are the owner and permissions?/bin/bash
exist? What are its permissions? Who is its owner?/bin/bash is root:root and 0644
" that will be the problem ...