diff --git a/files/gitlab-cookbooks/mattermost/recipes/enable.rb b/files/gitlab-cookbooks/mattermost/recipes/enable.rb
index 4a41e8f80c71b0ceac6b1854b409186fb645f9d9_ZmlsZXMvZ2l0bGFiLWNvb2tib29rcy9tYXR0ZXJtb3N0L3JlY2lwZXMvZW5hYmxlLnJi..d4bce1d32866a0fefef4781b0a8edbadc58d7628_ZmlsZXMvZ2l0bGFiLWNvb2tib29rcy9tYXR0ZXJtb3N0L3JlY2lwZXMvZW5hYmxlLnJi 100644
--- a/files/gitlab-cookbooks/mattermost/recipes/enable.rb
+++ b/files/gitlab-cookbooks/mattermost/recipes/enable.rb
@@ -41,7 +41,7 @@
   ugid mattermost_group
   groupname mattermost_group
   gid mattermost_gid
-  shell '/bin/sh'
+  shell '/usr/sbin/nologin'
   home mattermost_home
   manage node['gitlab']['manage_accounts']['enable']
 end