From fb41bbf9792c7e58aef16624c7ede9aabf2539d4 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sun, 05 Jul 2009 09:31:05 -0400 Subject: [PATCH] Add the website user to the sshusers group --- server/plugins-available/apache2_plugin.inc.php | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php index 9e1c948..c734921 100644 --- a/server/plugins-available/apache2_plugin.inc.php +++ b/server/plugins-available/apache2_plugin.inc.php @@ -476,6 +476,11 @@ exec("chmod 711 ".escapeshellcmd($data["new"]["document_root"])."/*"); exec("chmod 710 ".escapeshellcmd($data["new"]["document_root"]."/web")); + $command = 'usermod'; + $command .= ' --groups sshusers'; + $command .= ' '.escapeshellcmd($data["new"]["system_user"]); + exec($command); + //* add the apache user to the client group $app->system->add_user_to_group($groupname, escapeshellcmd($web_config['user'])); -- Gitblit v1.9.1