From f06816d6677add3b6ddb6b2dada87e374585392f Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 27 Jan 2009 16:40:48 +0000
Subject: [PATCH] Fixed: FS#452 - Jail not working if a jailkit user is
 recreated

---
 server/plugins-available/shelluser_base_plugin.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/plugins-available/shelluser_base_plugin.inc.php b/server/plugins-available/shelluser_base_plugin.inc.php
index bf834c76e1..59cfad99d5 100755
--- a/server/plugins-available/shelluser_base_plugin.inc.php
+++ b/server/plugins-available/shelluser_base_plugin.inc.php
@@ -141,7 +141,7 @@ class shelluser_base_plugin {
 			// Get the UID of the user
 			$userid = intval($app->system->getuid($data['old']['username']));
 			if($userid > $this->min_uid) {
-				$command = 'userdel';
+				$command = 'userdel --force';
 				$command .= ' '.escapeshellcmd($data['old']['username']);
 			
 				exec($command);
-- 
GitLab