LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   /bin/bash: Permission Denied in chroot environment. (http://www.linuxquestions.org/questions/linux-general-1/bin-bash-permission-denied-in-chroot-environment-749039/)

aliases 08-20-2009 11:22 AM

/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?

tia

P.S.

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

P.S.S
Virgin Post

chrism01 08-21-2009 03:13 AM

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 06:41 AM.