Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 9th October 2012, 11:36
tio289 tio289 is offline
Member
 
Join Date: Mar 2009
Posts: 70
Thanks: 2
Thanked 14 Times in 9 Posts
Default Jailkit problems with creating/updating users

Hi guys, I found and fix error in jailkit plugin.

Problem is if You have setup with HIGH security level, when ispconfig sets file atribute "i".

In jailkit plugin:

Code:
line 83: $app->system->web_folder_protection($web['document_root'],false);
				
// load the server configuration options
$app->uses("getconf");
$this->data = $data;
$this->app = $app;
$this->jailkit_config = $app->getconf->get_server_config($conf["server_id"], 'jailkit');
				
line 91: $this->_update_website_security_level();
			
$this->_setup_jailkit_chroot();
on line 83 removes attr "i" from document root, but on line 91 we calling function to update security level which enables attr "i" and so setup jailkit fails.

this same error is in update method too.

I simple move line 91 before line 83 and its working now.
__________________
Independent Senior Webdeveloper
Reply With Quote
The Following User Says Thank You to tio289 For This Useful Post:
till (9th October 2012)
Sponsored Links
  #2  
Old 9th October 2012, 12:00
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,777
Thanks: 821
Thanked 5,332 Times in 4,184 Posts
 
Default

Thanks for the patch, I've added it to the bugtracker.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
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
Name resolution not working for jailkit chrooted users user99 Installation/Configuration 3 11th September 2011 19:42
Allowing the use of java by ssh users (jailkit) crohakon General 0 11th June 2011 21:43
Help required in adding Domain Users to Local Powers Users group skirao Server Operation 0 28th August 2009 10:49
postfix: "unknown user" with mysql auth. Kruser Server Operation 3 18th June 2009 18:20
Cacti and ISPConfig: Monitoring Tool VMartins Tips/Tricks/Mods 11 9th August 2008 18:37


All times are GMT +2. The time now is 04:50.


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