SSH Shell users homedir

Discussion in 'Installation/Configuration' started by Gijs, Mar 6, 2013.

  1. Gijs

    Gijs New Member


    If I create a Shell user, the homedir is not the usual homedir as you connect with FTP, but it is /homedir/home/sshuser

    If I take a look at /etc/passwd it created the homedir there and if I delete that piece it connects fine to the actual homedir.

    Does anyone know how I can change this so that it is using the standard homedir? In ISPConfig 3 it says the right directory.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This will not work if I remember correctly as jailkit will fail to create the jails then. A ssh user must have its own home directory, so thats omething different then ftp. SSH users in linux always have their own homeir in /home/username btw.
  3. Gijs

    Gijs New Member

    If you check this line in /etc/passwd:

    This part defines the chrooted dir right:

    And this the homedir:

    So if I remove the last part it still connects fine and is still chrooted.

    So you still think it is impossible to automatically use the chrooted dir?

    Thanks :)

Share This Page