Jailkit SSH user login fails

Discussion in 'General' started by outeredge, Feb 17, 2011.

  1. outeredge

    outeredge New Member

    Hi,

    Having created a SSH user with Jailkit enabled in the CP, we get the following errors in our Auth log for the server the SSH user is on when trying to connect:

    Code:
    Feb 16 17:00:01 web-01 jk_chrootsh[14362]: path /var/www/clients/client20/web59/./home/web59 is not owned by user 1026
    Feb 16 17:00:01 web-01 jk_chrootsh[14362]: path /var/www/clients/client20/web59/./home/web59 is not owned by group 1024
    Feb 16 17:00:01 web-01 jk_chrootsh[14362]: abort, path /var/www/clients/client20/web59/./home/web59 is not owned by 1026
    Feb 16 17:00:01 web-01 CRON[14358]: pam_unix(cron:session): session closed for user web59
    Should the ./home parts be in there and how can we remove them. We don't use /home just the other path.

    Also, the path /var/www/clients/client20/web59/ is owned by root which I believe is how ISPConfig handles things, will this cause any problems?

    Thanks

    David
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. outeredge

    outeredge New Member

    We're using 2.13, any thoughts? That ./home doesn't look right to me
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Can you post the output of
    Code:
    ls -la /var/www/clients/client20/web59/home/
    ?

    The ./home is ok, it just means that the directory is chrooted.
     
  5. outeredge

    outeredge New Member

    Sure, here's the output:

    Code:
    web-01:/home/admin# ls -la /var/www/clients/client20/web59/home/
    total 12
    drwxr-x--x  3 root  root     4096 Feb 16 14:04 .
    drwxr-x--x 12 web59 client20 4096 Feb 16 14:04 ..
    drwxr-xr-x  2 root  root     4096 Feb 16 14:04 web59
    
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Do you have a user with the user ID 1026 in /etc/passwd? And do you have a group with the group ID 1024 in /etc/groups?
     
  7. outeredge

    outeredge New Member

    Hi Falko,

    /etc/passwd:

    /etc/group

     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run the command:

    chown web59:client20 /var/www/clients/client20/web59/home/web59

    and try to login again.
     

Share This Page