/bin/bash: Permission Denied in chroot environment.
I'm running a OS X 10.5.8 XSERVE G5 with OpenSSH_5.1p1. I am trying to lock non-admin users to their home directory in ssh sessions. The user home exist on a separate volume then the server. The unexpected outcome is that the user is unable to ssh into a /bin/bash shell, therefore closing the connection. My suspicion is that I have to create the /bin/bash environment in the jailed ssh directory. Has anyone done this before? Any suggestions?
my permission on /bin and /bin/bash
drwxr-xr-x@ 40 root wheel 1360 Aug 19 16:00 bin
-rwxr-xr-x 1 root wheel 1244928 Jun 17 16:57 bash
If you setup a chroot env, you need to copy in all reqd files, binaries etc, because the user can't see them; that's the whole point.
This is a good start, (ignore the fact its referring to ftp) http://www.faqs.org/docs/securing/chap29sec296.html
|All times are GMT -5. The time now is 04:50 AM.|