HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Trying to add Zip & Unzip to Jailkit for Shell Users (http://www.howtoforge.com/forums/showthread.php?t=59127)

snowfly 17th October 2012 00:50

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?

snowfly 17th October 2012 01:29

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

till 17th October 2012 08:38

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


All times are GMT +2. The time now is 05:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.