Permissions hardening and Standardization

This commit is contained in:
4s3ti 2019-09-01 16:10:53 +02:00
parent 9ee4c6179f
commit ad466f8728
2 changed files with 3 additions and 3 deletions

View file

@ -399,7 +399,7 @@ installScripts() {
if [ ! -d /opt/pivpn ]; then
$SUDO mkdir /opt/pivpn
$SUDO chown "$pivpnUser":root /opt/pivpn
$SUDO chmod u+srwx /opt/pivpn
$SUDO chmod 0755 /opt/pivpn
fi
$SUDO cp /etc/.pivpn/scripts/makeOVPN.sh /opt/pivpn/makeOVPN.sh
$SUDO cp /etc/.pivpn/scripts/clientStat.sh /opt/pivpn/clientStat.sh
@ -1135,7 +1135,7 @@ confOVPN() {
if [ ! -d "$INSTALL_HOME/ovpns" ]; then
$SUDO mkdir "$INSTALL_HOME/ovpns"
fi
$SUDO chmod 0777 -R "$INSTALL_HOME/ovpns"
$SUDO chmod 0750 -R "$INSTALL_HOME/ovpns"
}
confLogging() {

View file

@ -381,7 +381,7 @@ fi
if [ ! -d "/home/$INSTALL_USER/ovpns" ]; then
mkdir "/home/$INSTALL_USER/ovpns"
chmod 0777 -R "/home/$INSTALL_USER/ovpns"
chmod 0750 "/home/$INSTALL_USER/ovpns"
fi
# If user is using Bitwarden, have them login again to submit their .ovpn file to their vault