tbrehm
2012-01-02 a3d243b238f2e3887771044501c9cab844106832
Fixed: FS#1945 - Authorized keys file not readable by shell user
2 files modified
2 ■■■■■ changed files
server/plugins-available/shelluser_base_plugin.inc.php 1 ●●●● patch | view | raw | blame | history
server/plugins-available/shelluser_jailkit_plugin.inc.php 1 ●●●● patch | view | raw | blame | history
server/plugins-available/shelluser_base_plugin.inc.php
@@ -274,6 +274,7 @@
        }
        // set proper file permissions
        // exec("chown -R ".escapeshellcmd($this->data['new']['puser']).":".escapeshellcmd($this->data['new']['pgroup'])." ".$usrdir);
        exec("chown -R ".escapeshellcmd($this->data['new']['puser']).":".escapeshellcmd($this->data['new']['pgroup'])." ".$sshdir);
        exec("chmod 600 '$sshkeys'");
        
    }
server/plugins-available/shelluser_jailkit_plugin.inc.php
@@ -443,6 +443,7 @@
        }
        // set proper file permissions
        // exec("chown -R ".escapeshellcmd($this->data['new']['puser']).":".escapeshellcmd($this->data['new']['pgroup'])." ".$usrdir);
        exec("chown -R ".escapeshellcmd($this->data['new']['puser']).":".escapeshellcmd($this->data['new']['pgroup'])." ".$sshdir);
        exec("chmod 600 '$sshkeys'");
        
    }