--- a/cobbler/action_reposync.py
+++ b/cobbler/action_reposync.py
@@ -591,6 +591,8 @@ class RepoSync:
         owner = "root:apache"
         if os.path.exists("/etc/SuSE-release"):
             owner = "root:www"
+        if os.path.exists("/etc/debian_version"):
+            owner = "root:www-data"
 
         cmd1 = "chown -R "+owner+" %s" % repo_path
 
