|
@@ -194,7 +194,13 @@ if ( ! chmod 0777, SCREEN_LOGS_DIR ){
|
|
|
exit -1;
|
|
exit -1;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-my $groupCommandScreenLogs = "chmod -Rf g+s '" . SCREEN_LOGS_DIR . "'";
|
|
|
|
|
|
|
+my $groupCommandScreenLogs = "chmod -Rf g-s '" . SCREEN_LOGS_DIR . "'";
|
|
|
|
|
+sudo_exec_without_decrypt($groupCommandScreenLogs);
|
|
|
|
|
+
|
|
|
|
|
+$groupCommandScreenLogs = "find '" . SCREEN_LOGS_DIR . "' -type d | xargs chmod g+s";
|
|
|
|
|
+sudo_exec_without_decrypt($groupCommandScreenLogs);
|
|
|
|
|
+
|
|
|
|
|
+$groupCommandScreenLogs = "find '" . SCREEN_LOGS_DIR . "' -type d | xargs setfacl -d -m u::rwX,g::rwX,o::-";
|
|
|
sudo_exec_without_decrypt($groupCommandScreenLogs);
|
|
sudo_exec_without_decrypt($groupCommandScreenLogs);
|
|
|
|
|
|
|
|
# Check the global shared games folder
|
|
# Check the global shared games folder
|
|
@@ -2133,11 +2139,17 @@ sub set_path_ownership
|
|
|
# Set owner and perms on it recursivelly as well
|
|
# Set owner and perms on it recursivelly as well
|
|
|
my $chownCommand = "chown -Rf $owner_uid:$group_uid '$path'";
|
|
my $chownCommand = "chown -Rf $owner_uid:$group_uid '$path'";
|
|
|
my $chmodCommand = "chmod -Rf ug+rwx '$path'";
|
|
my $chmodCommand = "chmod -Rf ug+rwx '$path'";
|
|
|
- my $groupCommand = "chmod -Rf g+s '$path'";
|
|
|
|
|
|
|
+ my $groupCommand = "chmod -Rf g-s '$path'"; # Clean up the mess I made from previous version
|
|
|
sudo_exec_without_decrypt($chownCommand);
|
|
sudo_exec_without_decrypt($chownCommand);
|
|
|
sudo_exec_without_decrypt($chmodCommand);
|
|
sudo_exec_without_decrypt($chmodCommand);
|
|
|
sudo_exec_without_decrypt($groupCommand);
|
|
sudo_exec_without_decrypt($groupCommand);
|
|
|
|
|
|
|
|
|
|
+ $groupCommand = "find '$path' -type d | xargs chmod g+s";
|
|
|
|
|
+ sudo_exec_without_decrypt($groupCommand);
|
|
|
|
|
+
|
|
|
|
|
+ $groupCommand = "find '$path' -type d | xargs setfacl -d -m u::rwX,g::rwX,o::-";
|
|
|
|
|
+ sudo_exec_without_decrypt($groupCommand);
|
|
|
|
|
+
|
|
|
# Remove perms for other users
|
|
# Remove perms for other users
|
|
|
$chmodCommand = "chmod -Rf o-rwx '$path'";
|
|
$chmodCommand = "chmod -Rf o-rwx '$path'";
|
|
|
sudo_exec_without_decrypt($chmodCommand);
|
|
sudo_exec_without_decrypt($chmodCommand);
|