# On Unix-based systems

SonarQube should not be run as root on Unix-based systems. It is recommended to create a dedicated user account for SonarQube (It is highly recommended for a ZIP installation).

For a ZIP installation, proceed as follows:

1. Create a dedicated user account for SonarQube. Note that:
   * This user does not need to have a login shell.
   * This user does not need to have a password.
   * We recommend that the user’s home directory be the same as the installation directory (recommended: `/opt/sonarqube)`.
2. Grant to this user account the read/write/execute (or owner) privileges on the installation directory.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/10.7/setup-and-upgrade/pre-installation/unix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
