As described in the former post, the following access rights are sufficient:
Code:
/var/www/virtual root:root rwx rx rx
/var/www/virtual/domain.tld root:vuXXXX rwx rx rx
Former, originial access rights are:
Code:
/var/www/virtual vu2000:www-data rwx rx rx
/var/www/virtual/domain.tld vuXXXX:www-data rwx rxw ---
To change ownership and access bits to the new, SSH working ones I did two small patches:
Code:
--- /var/www/ispcp/engine/setup/ispcp-setup.orig 2009-09-24 13:25:56.000000000 +0200
+++ /var/www/ispcp/engine/setup/ispcp-setup 2009-09-24 13:26:43.000000000 +0200
@@ -521,7 +521,7 @@
push_el(\@main::el, 'setup_system_dirs()', 'Starting...');
- $rs = make_dir($main::cfg{'APACHE_WWW_DIR'}, $main::cfg{'APACHE_USER'}, $main::cfg{'APACHE_GROUP'}, 0755);
+ $rs = make_dir($main::cfg{'APACHE_WWW_DIR'}, $main::cfg{'ROOT_USER'}, $main::cfg{'ROOT_GROUP'}, 0755);
return $rs if ($rs != 0);
$rs = make_dir($main::cfg{'APACHE_USERS_LOG_DIR'}, $main::cfg{'APACHE_USER'}, $main::cfg{'APACHE_GROUP'}, 0755);
Code:
--- /var/www/ispcp/engine/ispcp-dmn-mngr.orig 2009-09-24 13:04:36.000000000 +0200
+++ /var/www/ispcp/engine/ispcp-dmn-mngr 2009-09-24 13:32:44.000000000 +0200
@@ -1351,6 +1351,7 @@
my $dmn_id = @$dmn_data[0];
my $dmn_name = @$dmn_data[1];
my $root_dir = $main::cfg{'ROOT_DIR'};
+ my $root_user = $main::cfg{'ROOT_USER'};
my $www_dir = $main::cfg{'APACHE_WWW_DIR'};
my $pear_dir = $main::cfg{'PEAR_DIR'};
my $starter_dir = $main::cfg{'PHP_STARTER_DIR'};
@@ -1419,9 +1420,9 @@
#
$rs = make_dir(
"$www_dir/$dmn_name",
- $sys_user,
- $httpd_gid,
- 0770
+ $root_user,
+ $sys_group,
+ 0755
);
return $rs if ($rs != 0);
Could some developer sign-off these patches?