It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Stash as dedicated user

In our Linux production environment, Stash is running as user root. However, Atlassian recommends that, for production or enterprise environment, stash should be run from a dedicated user account stash.

Just wanted to check with the Atlassian experts, if the following procedure is correct to implement the above recommended method. Let me know, if there are any issues. if there is any Atlassian link where this exact procedure including commands described would also be useful.

1. Stop Stash

2. create stash user as follows

useradd stash

3. chown -R stash:stash <stash installation directory>

4. chown -R stash:stash <stash home directory>

5. Start Stash

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Michael Heemskerk Atlassian Team Apr 16, 2014

As long as in step 5 you actually start Stash as the stash user, that should work.

Thanks for the quick response. Agreed that step 5 should run as stash user. Another question. After implementing the above said procedure, we got to validate the same to make sure that three is no impact to the users. What kind of testing do you suggest ? something like git clone or git push or anything else ? Please advise.

Michael Heemskerk Atlassian Team Apr 16, 2014

I'd try to:

  • clone an existing repository
  • push to an existing repository
  • create a new repository in Stash
  • clone the repository, make some changes and push the commits back
  • clone the repository again
  • delete the repository

That would test read, write and directory creation permissions.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

3,236 views 1 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you