mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Permissions hardening and Standardization
This commit is contained in:
parent
9ee4c6179f
commit
ad466f8728
2 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue