From af1c095fbd7e6a5dcbbee9f0ac9540100167e69a Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sun, 14 Dec 2008 18:39:51 +0000 Subject: [PATCH] Changed min userid from 999 to 499 to better support redhat based distributions. --- server/plugins-available/shelluser_base_plugin.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/plugins-available/shelluser_base_plugin.inc.php b/server/plugins-available/shelluser_base_plugin.inc.php index e3fd69068f..a36c636fbd 100755 --- a/server/plugins-available/shelluser_base_plugin.inc.php +++ b/server/plugins-available/shelluser_base_plugin.inc.php @@ -32,6 +32,7 @@ class shelluser_base_plugin { var $plugin_name = 'shelluser_base_plugin'; var $class_name = 'shelluser_base_plugin'; + var $min_uid = 499; //* This function is called during ispconfig installation to determine // if a symlink shall be created for this plugin. @@ -73,7 +74,7 @@ class shelluser_base_plugin { // Get the UID of the parent user $uid = intval($app->system->getuid($data['new']['puser'])); - if($uid > 999) { + if($uid > $this->min_uid) { $command = 'useradd'; $command .= ' --home '.escapeshellcmd($data['new']['dir']); $command .= ' --gid '.escapeshellcmd($data['new']['pgroup']); @@ -98,7 +99,7 @@ class shelluser_base_plugin { // Get the UID of the parent user $uid = intval($app->system->getuid($data['new']['puser'])); - if($uid > 999) { + if($uid > $this->min_uid) { $command = 'usermod'; $command .= ' --home '.escapeshellcmd($data['new']['dir']); $command .= ' --gid '.escapeshellcmd($data['new']['pgroup']); -- GitLab