Current time: 12-22-2024, 10:44 PM Hello There, Guest! (LoginRegister)


Post Reply 
SSH Support
Author Message
sseitz Offline
Junior Member
*

Posts: 17
Joined: Mar 2009
Reputation: 0
Post: #4
RE: SSH Support
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?
09-24-2009 09:43 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
SSH Support - sseitz - 09-23-2009, 11:44 PM
RE: SSH Support - kilburn - 09-24-2009, 01:05 AM
RE: SSH Support - sseitz - 09-24-2009, 08:16 AM
RE: SSH Support - sseitz - 09-24-2009 09:43 PM
RE: SSH Support - a.dangel - 01-28-2011, 02:24 AM
RE: SSH Support - anarking - 07-13-2011, 02:00 AM
RE: SSH Support - RatS - 07-14-2011, 06:20 AM
RE: SSH Support - mike548141 - 03-09-2012, 09:57 PM
RE: SSH Support - seo_urani - 06-16-2012, 01:22 PM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)