diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 272c71fb0cedc99a66c904f7d234ff2f591ee154..9d6176a1cd3ac26a82d1b121eba61860703d03bc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,7 +45,7 @@ deploy to stage:
   # WARNING: use only in docker container, if you use it with shell you will overwrite your user's ssh config
   - mkdir -p ~/.ssh
   - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
-  - useradd --disabled-password --gecos '' nginx
+  - useradd -lM nginx
   script:
   - chown nginx:nginx site -R
   - rsync -av --delete site/ root@"$SSH_HOST_STAGE":/srv/docs.it4i.cz/devel/$CI_BUILD_REF_NAME/