Wrong client directory when ssh/ssh_keygen

Discussion in 'Installation/Configuration' started by paradoxni, Apr 23, 2014.

  1. paradoxni

    paradoxni New Member

    I create a new site under a specific client. All web folders etc working fine..

    Code:
    /var/www/clients/client4/web12
    I then create a shell user for this website with "chroot: none". Again this is configured with the correct structure..

    Code:
    Web Username: web12
    Web Group: client4
    Shell: /bin/bash
    Dir: /u0/webroot/clients/client4/web12
    I SSH to the server with new account details, all works fine and I am in the correct site home folder as expected, however, when I try to SSH to a remote git repo to pull down some code OR run ssh-kegen I get the following error:

    Code:
    Could not create directory '/var/www/clients/client0/web12/.ssh'
    Note the client0 is incorrect, the correct location should be client4 as above, as such they SSH key is not saved.

    I deleted and recreated multiple SSH users for this site and have the same problem on each.

    Is this a bug?

    Regards,

    A
     
    Last edited: Apr 23, 2014
  2. paradoxni

    paradoxni New Member

    Just tried another SSH user for a different site:

    Code:
    /var/www/clients/client4/web14
    Again when create an SSH user then try ssh or ssh-keygen its trying to store the SSH key in the wrong directory:

    Code:
    Could not create directory '/var/www/clients/client0/web14/.ssh'.
    Also in /etc/passwd, after the SSH user is created, web12 and web14 seem incorrect:

    web12:x:5006:5005::/var/www/clients/client0/web12:/bin/false <--- incorrect client0, should be client4
    web14:x:5007:5005::/var/www/clients/client0/web14:/bin/false <--- incorrect client0, should be client4
    demo1user1:x:5006:5005::/var/www/clients/client4/web12:/bin/bash <-- correct
    demo2user1:x:5007:5005::/var/www/clients/client4/web14:/bin/bash <-- correct
     
    Last edited: Apr 23, 2014
  3. paradoxni

    paradoxni New Member

    Sorry I should have raised this in the ISPconfig3 section. Can it be moved?
     

Share This Page