diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4e5658bf7e72318a49ac4561cbd5a9e21ceb4c15..3efc760113c7343c958b7062415a9251ed87725a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,7 +26,7 @@ test:
       alias: selenium
   before_script:
     - adduser --disabled-password --gecos "Test User" testuser
-    - chmod -R testuser .
+    - chown -R testuser .
   script:
     - sudo -u testuser 
       env TEST_SELENIUM_HUB=http://selenium:4444/wd/hub