Skip to content

Commit 1e0033c

Browse files
committed
- Updated jailkit installation instructions.
Fixed a bug in ssh user plugin which resulted in a change of the shell to /bin/bash when a user was updated even when jailkit was enabled.
1 parent 0c78af2 commit 1e0033c

File tree

6 files changed

+38
-23
lines changed

6 files changed

+38
-23
lines changed

INSTALL_CENTOS_5.2.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,14 @@ done
221221

222222
Installing Jailkit:
223223

224+
// It is nescessary to use the cvs version of jailjit, as the cvs contains a change
225+
// which is nescessary for ISPConfig and has not been released yet.
226+
224227
cd /tmp
225-
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
226-
tar xvfz jailkit-2.5.tar.gz
227-
cd jailkit-2.5
228+
cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/jailkit co .
229+
cd jailkit
228230
./configure
229231
make
230232
make install
231-
rm -rf jailkit-2.5*
233+
cd ..
234+
rm -rf jailkit

INSTALL_DEBIAN_4.0.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,15 @@ done
162162

163163
Installing Jailkit:
164164

165-
apt-get install build-essential autoconf automake1.9 libtool flex bison
165+
// It is nescessary to use the cvs version of jailjit, as the cvs contains a change
166+
// which is nescessary for ISPConfig and has not been released yet.
167+
168+
apt-get install build-essential autoconf automake1.9 libtool flex bison nano cvs
166169
cd /tmp
167-
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
168-
tar xvfz jailkit-2.5.tar.gz
169-
cd jailkit-2.5
170+
cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/jailkit co .
171+
cd jailkit
170172
./configure
171173
make
172174
make install
173-
rm -rf jailkit-2.5*
175+
cd ..
176+
rm -rf jailkit

INSTALL_FEDORA_9.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,14 @@ done
204204

205205
Installing Jailkit:
206206

207+
// It is nescessary to use the cvs version of jailjit, as the cvs contains a change
208+
// which is nescessary for ISPConfig and has not been released yet.
209+
207210
cd /tmp
208-
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
209-
tar xvfz jailkit-2.5.tar.gz
210-
cd jailkit-2.5
211+
cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/jailkit co .
212+
cd jailkit
211213
./configure
212214
make
213215
make install
214-
rm -rf jailkit-2.5*
216+
cd ..
217+
rm -rf jailkit

INSTALL_OPENSUSE_11.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,11 +189,14 @@ done
189189

190190
Installing Jailkit:
191191

192+
// It is nescessary to use the cvs version of jailjit, as the cvs contains a change
193+
// which is nescessary for ISPConfig and has not been released yet.
194+
192195
cd /tmp
193-
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
194-
tar xvfz jailkit-2.5.tar.gz
195-
cd jailkit-2.5
196+
cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/jailkit co .
197+
cd jailkit
196198
./configure
197199
make
198200
make install
199-
rm -rf jailkit-2.5*
201+
cd ..
202+
rm -rf jailkit

INSTALL_UBUNTU_8.04.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,13 +217,16 @@ In case you get a permission denied error from apache, please restart the apache
217217

218218
Installing Jailkit:
219219

220-
apt-get install build-essential autoconf automake1.9 libtool flex bison
220+
// It is nescessary to use the cvs version of jailjit, as the cvs contains a change
221+
// which is nescessary for ISPConfig and has not been released yet.
222+
223+
apt-get install build-essential autoconf automake1.9 libtool flex bison nano cvs
221224
cd /tmp
222-
wget http://olivier.sessink.nl/jailkit/jailkit-2.5.tar.gz
223-
tar xvfz jailkit-2.5.tar.gz
224-
cd jailkit-2.5
225+
cvs -d:pserver:anonymous@cvs.sv.gnu.org:/sources/jailkit co .
226+
cd jailkit
225227
./configure
226228
make
227229
make install
228-
rm -rf jailkit-2.5*
230+
cd ..
231+
rm -rf jailkit
229232

server/plugins-available/shelluser_base_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function update($event_name,$data) {
9191
$command .= ' --gid '.escapeshellcmd($data['new']['pgroup']);
9292
// $command .= ' --non-unique ';
9393
$command .= ' --password '.escapeshellcmd($data['new']['password']);
94-
$command .= ' --shell '.escapeshellcmd($data['new']['shell']);
94+
if($data['new']['chroot'] != 'jailkit') $command .= ' --shell '.escapeshellcmd($data['new']['shell']);
9595
// $command .= ' --uid '.escapeshellcmd($uid);
9696
$command .= ' --login '.escapeshellcmd($data['new']['username']);
9797
$command .= ' '.escapeshellcmd($data['old']['username']);

0 commit comments

Comments
 (0)