SSH Shell users homedir

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

  1. Gijs

    Gijs New Member

    Hi,

    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.

    Thanks
     
  2. till

    till Super Moderator Howtoforge Staff HowtoForge Supporter 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:
    sshuser:x:1005:1005::/var/www/clients/210220203/web15/./home/sshuser:/usr/sbin/jk_chrootsh

    This part defines the chrooted dir right:
    /var/www/clients/210220203/web15/

    And this the homedir:
    /home/sshuser

    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