Skip to content

Commit 5aedfd4

Browse files
author
Till Brehm
committed
FS#3572 - session.save_path directory listing possible for everyone
1 parent 51910d3 commit 5aedfd4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ function update($event_name, $data) {
710710
$app->system->chmod($data['new']['document_root'].'/ssl', 0755);
711711

712712
// make tmp directory writable for Apache and the website users
713-
$app->system->chmod($data['new']['document_root'].'/tmp', 0777);
713+
$app->system->chmod($data['new']['document_root'].'/tmp', 0770);
714714

715715
// Set Log directory to 755 to make the logs accessible by the FTP user
716716
if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
@@ -770,7 +770,7 @@ function update($event_name, $data) {
770770
$app->system->chmod($data['new']['document_root'].'/cgi-bin', 0755);
771771

772772
// make temp directory writable for Apache and the website users
773-
$app->system->chmod($data['new']['document_root'].'/tmp', 0777);
773+
$app->system->chmod($data['new']['document_root'].'/tmp', 0770);
774774

775775
// Set Log directory to 755 to make the logs accessible by the FTP user
776776
if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {

server/plugins-available/nginx_plugin.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ function update($event_name, $data) {
714714
$app->system->chmod($data['new']['document_root'].'/ssl', 0755);
715715

716716
// make tmp directory writable for nginx and the website users
717-
$app->system->chmod($data['new']['document_root'].'/tmp', 0777);
717+
$app->system->chmod($data['new']['document_root'].'/tmp', 0770);
718718

719719
// Set Log directory to 755 to make the logs accessible by the FTP user
720720
if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {
@@ -774,7 +774,7 @@ function update($event_name, $data) {
774774
$app->system->chmod($data['new']['document_root'].'/cgi-bin', 0755);
775775

776776
// make temp directory writable for nginx and the website users
777-
$app->system->chmod($data['new']['document_root'].'/tmp', 0777);
777+
$app->system->chmod($data['new']['document_root'].'/tmp', 0770);
778778

779779
// Set Log directory to 755 to make the logs accessible by the FTP user
780780
if(realpath($data['new']['document_root'].'/'.$log_folder . '/error.log') == '/var/log/ispconfig/httpd/'.$data['new']['domain'].'/error.log') {

0 commit comments

Comments
 (0)