tbrehm
2009-07-05 fb41bbf9792c7e58aef16624c7ede9aabf2539d4
Add the website user to the sshusers group
1 files modified
5 ■■■■■ changed files
server/plugins-available/apache2_plugin.inc.php 5 ●●●●● patch | view | raw | blame | history
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']));