Trying to add Zip & Unzip to Jailkit for Shell Users

Discussion in 'Installation/Configuration' started by snowfly, Oct 17, 2012.

  1. snowfly

    snowfly Member

    Trying to add Zip & Unzip to Jailkit for Shell Users - WORKING

    I am trying to add the additional command line apps 'zip' and 'unzip' to jailket for Shell users, but can't get it to work.

    ISPConfig version 3.0.4.6

    In ISPConfig I edited the Server Config, Jailkit Tab:
    In the "Jailkit chroot app sections" box I added at the end: zip unzip

    And in the "Jailkit chrooted applications" box I added at the end: /usr/bin/zip /usr/bin/unzip

    Added a new shell user, logged in ok, but no zip or unzip available.
    Checked in the /bin directory for shell user, no zip programs there.

    Is there a step I am missing?
    Do I need to copy the application executables to somewhere else on the server?
     
    Last edited: Oct 17, 2012
  2. snowfly

    snowfly Member

    UPDATE: Now working.

    After a lot of messing around, the following steps managed to work:

    1. Remove the additional command I added via ISPConfig "Server Config", in the "Jailkit chroot app sections" and "Jailkit chrooted applications" boxes.

    2. As root on the server, edit /etc/jailkit/jk_init.ini
    Under [basicshell], appended the following to "executables":
    ,/usr/bin/zip, /usr/bin/unzip

    3. Restarted jailkit
    4. Added a new website via ISPConfig
    5. Added a new Shell user, zip and unzip now working
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    You can also add applicationsmanually to existing sites with the "jk_cp" command on the shell.
     

Share This Page