# Troubleshooting "Permission denied" error when attempting to run BaseSpace CLI on Linux and Mac OS

**Background**

The error below occurs when attempting to invoke the BaseSpace Command Line Interface (CLI) program (using the **bs** command) in either Linux or Mac OS when the file permissions have not been set to make the program executable. This typically occurs after the program is first downloaded when users attempt to authenticate against their BaseSpace account.

```
$ ./bs authbash: ./bs: Permission denied  
```

**Solution:**\
Set the permissions for the bs binary file (the BaseSpace CLI program) so it is "executable" using the **chmod** program built into most Linux and Mac OS Bash environments.

```
$ chmod 766 </path/to/bs>  # Has the same effect as the command below on a newly downloaded copy of the BaseSpace CLI binary$ chmod u+x </path/to/bs>  
```

For more information, see [Install BaseSpace Sequence Hub CLI](https://developer.basespace.illumina.com/docs/content/documentation/cli/cli-overview#Install) on the BaseSpace Developers page.

\
\
\ <br>

|                                                                                                                                                                                                                                                                                                                                                                 |
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
| *For any feedback or questions regarding this article (Illumina Knowledge Article #3380), contact Illumina Technical Support* [*techsupport@illumina.com*](mailto:techsupport@illumina.com?subject=Question%2FFeedback%20Regarding%20Illumina%20Knowledge%20Article%20#000003380%20-%20Software%20\&body=Dear%20Illumina%20Technical%20Support,%0D%0A%0D%0A)*.* |


---

# 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://knowledge.illumina.com/software/basespace-cli/software-basespace-cli-troubleshooting-list/000003380.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.
