Problem with SSH Jailkit and custom base directory

Discussion in 'General' started by Scooopy, May 5, 2023.

  1. Scooopy

    Scooopy New Member

    Hi all,
    I would like to restrict access for a new ssh-user with jailkit enabled to a subdirectory.
    Without a custom base directory, everything works fine and the ssh user can log in. But if I change the base directory to a subdirectory, the same ssh-user can no longer log in.
    The console then says:
    "Could not chdir to home directory /var/www/clients/client1/web1/subdirectory/./home/sh_user_test: Permission denied
    Connection to srv4.example.de closed."

    Is this a know bug maybe or what am I doing wrong?
    (ISPConfig Version: 3.2.9p1 / Debian 10)

    Thanks in advance!
    Scooopy
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Did you add that subdirectory to the jail?
    Have you read jailkit documentation? It is good and there is lots of it.
     
  3. Scooopy

    Scooopy New Member

    thanks for your answer.
    the directory is present. it is the main directory of a vhost and I can see the created jailkit folders within.
    not really until now. I thought it would/should work out of the box.
     

Share This Page