aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/install/secure.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/install/secure.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/install/secure.sh b/scripts/install/secure.sh
new file mode 100755
index 0000000..95aae84
--- /dev/null
+++ b/scripts/install/secure.sh
@@ -0,0 +1,26 @@
1#!/bin/bash
2
3source ../common.sh
4
5echo "Securing OpenSim."
6sudo chmod 600 ${OS_PATH}/config/*.ini
7sudo chmod 600 ${OS_PATH}/config/ROBUST/*.ini
8sudo chown -R ${OS_USER}:${OS_USER} ${OS_PATH}
9sudo chmod -R 775 ${OS_PATH}
10sudo chmod -R a-x ${OS_PATH}
11sudo chmod -R a+X ${OS_PATH}
12sudo chmod -R g+w ${OS_PATH}
13sudo chmod -R a+x ${OS_PATH}/current/*.sh
14sudo chmod -R a+x ${OS_PATH}/current/scripts/*.sh
15sudo chmod -R a+x ${OS_PATH}/current/scripts/install/*.sh
16sudo chmod a+x ${OS_PATH}/current/scripts/show-console
17sudo chmod a+x ${OS_PATH}/current/scripts/start-sim
18
19sudo chmod ug+rwx ${OS_PATH}/config
20sudo chmod g+s ${OS_PATH}/config
21sudo chmod 600 ${OS_PATH}/config/*.ini
22sudo chmod 600 ${OS_PATH}/config/ROBUST/*.ini
23
24chmod ug+rwx ${OS_PATH}/caches
25chmod o-rwx ${OS_PATH}/caches
26chmod g+s ${OS_PATH}/caches