Azure / Azure/azure-cli

az command not executable

Open
#17,460 5 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

## Describe the bug

**Command Name**
`az login`

**Errors:**
`-bash: /home/ubuntu/aztest/bin/az: Permission denied`

## To Reproduce:
```
python3 -m virtualenv aztest
source aztest/bin/activate
pip install azure-cli
az login
```
## Expected Behavior
az should be installed with the executable bit set:

```
ll /home/ubuntu/csitest/bin/az
-rw-r----- 1 ubuntu ubuntu 482 Mar 25 11:15 /home/ubuntu/functionvenv/bin/az
```

setting the bit fixes it
```
chmod +x /home/ubuntu/functionvenv/bin/az
az login
```
## Environment Summary
```
Linux-5.4.0-1043-azure-x86_64-with-glibc2.29
Python 3.8.5
Installer: PIP

azure-cli 2.21.0

```
## Additional Context

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.