diff --git a/UI/includes/enrollment.php b/UI/includes/enrollment.php index 22b12b6..291b6c8 100644 --- a/UI/includes/enrollment.php +++ b/UI/includes/enrollment.php @@ -404,6 +404,11 @@ EOF; } unlink($tempFile); + // Set proper permissions on service file + if (!executeCommand("chmod 644 " . SYSTEMD_SERVICE_FILE)) { + throw new Exception('Failed to set permissions on systemd service file'); + } + // Reload systemd and enable service if (!executeCommand('systemctl daemon-reload')) { throw new Exception('Failed to reload systemd');