chroot access problem

Discussion in 'Server Operation' started by adrenalinic, Aug 12, 2006.

  1. adrenalinic

    adrenalinic Member

    I have followed this tutorial setting chroot enviroment.

    Now, when try to login with chroot username, the shell access close automaticaly!

    The error is: /bin/bash: No such file or directory
    Connection to closed.

    but the file /bin/bash exist and folders and files have the correct permission.
    Permission: user=root

    Any idea?

    Thanks josef
    Last edited: Aug 12, 2006
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the username? What's the user's entry from /etc/passwd?
    Which distribution do you use?
  3. themachine

    themachine ISPConfig Developer ISPConfig Developer

    Well, if you are creating SSH in a chroot environment then you need to have all binaries and libraries necessary within the chroot "root" directory. So, if you are chrooting to the user's home directory such as '/home/user' then you must have '/home/user/bin/bash' since '/bin/bash' is from the chroot env '/home/user'.

    Maybe that helps.
  4. Mr Blek

    Mr Blek New Member

    Sorry to bump this old thread, but I'm getting the same problem.

    ISPConfig with chroot off:


    ISPConfig with chroot on:


    When on, the connection simply closes. Any ideas?
  5. falko

    falko Super Moderator ISPConfig Developer

    Any errors in your logs?

Share This Page