Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th August 2010, 06:28
dpicella dpicella is offline
Senior Member
 
Join Date: Apr 2009
Posts: 116
Thanks: 9
Thanked 8 Times in 7 Posts
Default Expand Jailkit applications for jailed users in ISPConfig 3

I want to expand the applications that my ISPConfig 3 jailed users have access to.

By default, I want to add svn and the expect shell

I put this at the bottom of /etc/jailkit/jk_init.ini

Code:
[...]

[svn]
comment = the subversion program
executables = /usr/bin/svn
includesections = netbasics

[dshell]
comment = dpicella shell addons
executables = /bin/expect
includesections = netbasics, uidbasics
Then create a new shell user. Seems like that worked before. Does anyone know if I am doing this right for ISPConfig 3

Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 19th August 2010, 16:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

That could work, but remember that you must add svn and dshell to the Server Config in ISPConfig (it's the field Jailkit chroot app sections on the Jailkit tab).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
dpicella (19th August 2010)
  #3  
Old 19th August 2010, 16:52
dpicella dpicella is offline
Senior Member
 
Join Date: Apr 2009
Posts: 116
Thanks: 9
Thanked 8 Times in 7 Posts
Default

Thanks!

I think I got it.
http://www.how2forge.net/forums/showthread.php?p=198760
Reply With Quote
  #4  
Old 20th August 2010, 04:43
dpicella dpicella is offline
Senior Member
 
Join Date: Apr 2009
Posts: 116
Thanks: 9
Thanked 8 Times in 7 Posts
 
Default

It works.

The procedure is:

Modify jk_init.ini
To get the expect shell working ... I needed:
Code:
[dshell]
comment = dpicella shell addons
paths = /usr/lib/tcl8.4
libraries = /usr/lib/libexpect5.43.so, /lib64/libgcc_s.so.1
executables = /usr/bin/expect
includesections = netbasics, uidbasics
Then ... add custom or modified sections (in this case "svn" and "dshell") to your list of chroot app sections in ispconfig 3 at: system -> server config -> jailkit

It only seems to work when installing a new website. I don't seem to get all the updates to my chrooted jail applications when changing or modifying users.

Both SVN and the expect shell seem to be working ... However, if I log in as a jailed user and try to spawn an sftp session using the expect shell, I get this error:

Quote:
The system has no more ptys. Ask your system administrator to create more.

Last edited by dpicella; 20th August 2010 at 04:48. Reason: left something out
Reply With Quote
The Following 2 Users Say Thank You to dpicella For This Useful Post:
aldo (2nd May 2013), falko (20th August 2010)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosting multiple websites and webmail dmwcool Installation/Configuration 8 30th March 2010 03:15
Ftp problems timeout reny2000 General 6 23rd December 2009 11:09
Loads of mysql connections to dbispconfig StrikerNL General 2 5th March 2009 14:31
Adding Server Side Mail Filters for Users to ISPConfig DantePasquale Installation/Configuration 3 24th February 2009 15:09
ispconfig and chrooting users hrvbid Installation/Configuration 0 5th March 2008 11:15


All times are GMT +2. The time now is 13:22.


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