BUG10730: fix permissions of ovpnserver.log

This commit is contained in:
Alexander Marx
2015-02-03 07:26:34 +01:00
parent 8451f21315
commit 8516edcc48
3 changed files with 7 additions and 4 deletions

View File

@@ -469,6 +469,10 @@ void startDaemon(void) {
executeCommand(command);
snprintf(command, STRING_SIZE-1, "/usr/sbin/openvpn --config /var/ipfire/ovpn/server.conf");
executeCommand(command);
snprintf(command, STRING_SIZE-1, "/bin/chown root.nobody /var/run/ovpnserver.log");
executeCommand(command);
snprintf(command, STRING_SIZE-1, "/bin/chmod 644 /var/run/ovpnserver.log");
executeCommand(command);
}
}