]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/misc-progs/openvpnctrl.c
BUG10730: fix permissions of ovpnserver.log
[ipfire-2.x.git] / src / misc-progs / openvpnctrl.c
index da5ee2356e8b7fcf448c225bb585b628f71eea29..d20cced7743b80bdfc91c1875b54c2e33d0ca337 100644 (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);
        }
 }