Running Stash with a dedicated user

Redirection notice

This page will redirect to /display/BitbucketServer/Running+Bitbucket+Server+with+a+dedicated+user .

For production installations, we recommend that you create a new dedicated user that will run Stash on your system. This user:

  • Should be local.
  • Should not have admin privileges.
  • Should be a non-privileged user with read, write and execute access (called "Full control" permission on Windows) on the Stash install directory and home directory.

Note that, on Windows, running Stash (whether as a service, or not) as a user that is part of the Administrator group can cause Windows to spend a lot of time running permission checks, with a consequent performance impairment for Git operations.

See also Running Stash as a Windows service and Running Stash as a Linux service.

For Linux, here is an example of how to create a dedicated user to run Stash:

$ sudo /usr/sbin/useradd --create-home --home-dir /opt/atlassian/stash --shell /bin/bash atlstash

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport