Jailkit stopped working after update Jessie (8) to Stretch (9)

Discussion in 'General' started by Hbod, Sep 18, 2017.

  1. Hbod

    Hbod Member

    1)
    -rw-r--r-- 1 root root 14640 Jun 15 21:17 libdl-2.24.so
    lrwxrwxrwx 1 root root 13 Jun 15 21:17 libdl.so.2 -> libdl-2.24.so

    2) nothing. just empty
     
  2. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    Did you update the jail?
    jk_update -j {jail}
    If yes, copy libdl-2.24.so to the folder manually and create the symlink for libdl.so.2 manually
     
  3. Hbod

    Hbod Member

    I updated the jail multiple times. And I also did copy the file manually and created the symlink
    Code:
    jk_update -j /var/www/clients/client7/web190/
    removing deprecated file /var/www/clients/client7/web190/usr/share/libtool/config
    Code:
    > cd /var/www/clients/client7/web190/lib/x86_64-linux-gnu/
    > cp /lib/x86_64-linux-gnu/libdl-2.24.so .
    > ln -s libdl-2.24.so libdl.so.2
    
    Now I can connect with ssh from my own server, but not with any other application or remote host.
    > ls: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory
    > whoami: cannot find name for user ID 5039

    Something fucked up since the update and I need to find a way to totally fix it :/
     
  4. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    Same procedure for libpcre.so.3 then ;-)
     
  5. Hbod

    Hbod Member

    I don't think this is going to work anyway as long as the "user ID" isn't even known? Something else must be broken. I don't understand why an "jk_update" doesn't fix anything?? Do I need to change something on the jk_update.ini oder jk_init.ini ?
     
  6. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    To my understanding the User ID will not be know inside the jail if the corresponding files (like passwd) are not inside the jail.
     
  7. Hbod

    Hbod Member

    I used "chattr -i web190" and removed everything that was created through jailkit. I removed the user inside of ISPConfig and also removed everything related to them from "passwd", "group" and "shadow"

    I tried to reinit the jail
    > jk_init -v -j /var/www/clients/client7/web190 basicshell editors extendedshell netutils ssh sftp scp

    Source file(s) /lib/libnsl.so.1 do not exist
    Source file(s) /lib64/libnsl.so.1 do not exist
    Source file(s) /lib/libnss*.so.2 do not exist
    Source file(s) /lib64/libnss*.so.2 do not exist
     
  8. HSorgYves

    HSorgYves Active Member HowtoForge Supporter

    Which OS are you using? Version?
    Which ISPConfig version are you using?
     
  9. Hbod

    Hbod Member

    Newest ISPConfig (up2date) and Debian Stretch (Upgraded From Jessie 2 Stretch)
     
  10. Hbod

    Hbod Member

    I reinstalled Jailkit and now the config-files under /etc/jailkit are missing
     
  11. Hbod

    Hbod Member

    Managed to get the files back.. But still the same problem. Fully reinstalled Jailkit, fully recreated jail and I can't SSH into it. This upgrade totally screwed up everything
     
  12. Hbod

    Hbod Member

    Finally.. I fucking fixed it.
    abort, failed to get user information in the jail for user ID 5039: Success, check /var/www/clients/client7/web190/etc/passwd

    i looked inside of it and there was an OLD username... i manually changed it to the newly created
     
    Jesse Norell likes this.
  13. Hbod

    Hbod Member

    Thanks to everybody trying to help out!
     

Share This Page