Chroot SSH error
rob.ballou_at_gmail.com
Date: 01/27/05
- Previous message: Joachim Schipper: "Re: Chroot sftp user with openssh OpenSSH_3.9p1"
- Next in thread: Joachim Schipper: "Re: Chroot SSH error"
- Reply: Joachim Schipper: "Re: Chroot SSH error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 27 Jan 2005 07:55:11 -0800
Hello,
I have setup a chroot ssh user on a box and I'm having trouble getting
their login to process, so I was hoping someone would help. I have
found many a page on this in google, but no solutions have worked yet.
I think the problem lies in my chroot jail, because here is the
symptoms (I'm running Fedora Core 3 with a chroot ssh patched SSHD):
- the user logs in via SSH
- the login is successful (which can be verified in /var/log/secure)
- then the following error happens:
'/bin/bash': No such file or directory
What is strange is if I run:
chroot /chroot/ /bin/bash
It runs just fine. If I run /chroot/home/test2/ I get the error. If I
run chroot /chroot/ I get the bash shell prompt.
I have triple checked the libraries with ldd for /bin/bash. The user's
/etc/passwd entry looks like:
test2:x:514:515::/chroot/home/./test2:/bin/bash
Thank you in advance for any help.
Rob Ballou
- Previous message: Joachim Schipper: "Re: Chroot sftp user with openssh OpenSSH_3.9p1"
- Next in thread: Joachim Schipper: "Re: Chroot SSH error"
- Reply: Joachim Schipper: "Re: Chroot SSH error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]