From 8e65843f3c31c4f66f885b549eed47322849745b Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 17 Nov 2008 09:49:15 -0500 Subject: [PATCH] FTP and Shell users belong to the same ispconfig group then the website they belong to. --- interface/web/sites/shell_user_edit.php | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/interface/web/sites/shell_user_edit.php b/interface/web/sites/shell_user_edit.php index f7189f0..17e55a9 100644 --- a/interface/web/sites/shell_user_edit.php +++ b/interface/web/sites/shell_user_edit.php @@ -104,7 +104,10 @@ $puser = $web["system_user"]; $pgroup = $web["system_group"]; - $sql = "UPDATE shell_user SET server_id = $server_id, dir = '$dir', puser = '$puser', pgroup = '$pgroup' WHERE shell_user_id = ".$this->id; + // The FTP user shall be owned by the same group then the website + $sys_groupid = $web['sys_groupid']; + + $sql = "UPDATE shell_user SET server_id = $server_id, dir = '$dir', puser = '$puser', pgroup = '$pgroup', sys_groupid = '$sys_groupid' WHERE shell_user_id = ".$this->id; $app->db->query($sql); } -- Gitblit v1.9.1