Error on log: Error executing jk_init command: ERROR: jail directory coreutils is not safe

Discussion in 'Installation/Configuration' started by 30uke, Nov 11, 2025.

  1. 30uke

    30uke Active Member

    I came across the following post: https://forum.howtoforge.com/threads/error-on-log.94235/
    I was able to resolve this issue on my server by checking the users (i.e., clients) with SSH access. You should look for the following directories and symlinks:
    • Directories: var, dev, usr, run
    • Symlinks: bin -> usr/bin, lib64 -> usr/lib64, lib -> usr/lib
    These directories and symlinks should be owned by the root user. If they are not, you can fix it with:
    Code:
    # chown -R root:root /var/www/clients/client2/web2/{var,dev,usr,run,bin,lib64,lib}
    Next, rebuild the jail with jk_init:
    Code:
    # jk_init -j /var/www/clients/client2/web2 basicshell coreutils editors

    !!! Note: client2 and web2 in these examples refer to my specific setup. Be sure to replace them with the actual client and website names used on your own server.
     
    till and ahrasis like this.
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    This answer was partially mentioned in that thread but jk_init thereafter makes it complete.
     

Share This Page