Re: Chroot SSH error
From: Joachim Schipper (jDOTschipper_at_math.uu.nl)
Date: 01/28/05
- Next message: mguy: "Putty SSH connection with grabage characters"
- Previous message: cbdeja_at_my-deja.com: "How does SSH-2 protect against Diffie-Hellman MITM?"
- In reply to: rob.ballou_at_gmail.com: "Chroot SSH error"
- Next in thread: rob.ballou_at_gmail.com: "Re: Chroot SSH error"
- Reply: rob.ballou_at_gmail.com: "Re: Chroot SSH error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 28 Jan 2005 19:31:39 GMT
rob.ballou@gmail.com wrote:
> 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
I am not sure I understand you entirely, but if I read this post
correctly you note that bash works when chrooting under /chroot, but not
when chrooting under /chroot/home (note where you placed the dot). This
doesn't seem strange to me - there probably just is no
/chroot/home/bin/bash. ;-)
Does chroot /chroot/home /bin/bash work?
Joachim
- Next message: mguy: "Putty SSH connection with grabage characters"
- Previous message: cbdeja_at_my-deja.com: "How does SSH-2 protect against Diffie-Hellman MITM?"
- In reply to: rob.ballou_at_gmail.com: "Chroot SSH error"
- Next in thread: rob.ballou_at_gmail.com: "Re: Chroot SSH error"
- Reply: rob.ballou_at_gmail.com: "Re: Chroot SSH error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|