# Disallow running CLI with root privileges \(\#32583\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/628f91dd9668ebaab062522a91e12c1b7d2491d6)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 628f91dd9668ebaab062522a91e12c1b7d2491d6

Requested commit: 628f91dd9668ebaab062522a91e12c1b7d2491d6

Commit: 628f91dd9668ebaab062522a91e12c1b7d2491d6

Tree: e1848b68e59329aae1a1acdb5ac8e226289c76a4

Author: Yaroslav Pietukhov

Committer: GitHub

## Message

```
Disallow running CLI with root privileges (#32583)

In #31331, I made a change that prevents Zed from running with root
privileges, but I forgot about the CLI.
So if you run the CLI without the `--foreground` flag, it just freezes
without any messages. This PR fixes that.

Release Notes:

- N/A
```

## Parents

- [3fb28f695f8cef8cf9ed65f287344e74d5c3c909](https://git.cafe/gitcafe/zed/commit/3fb28f695f8cef8cf9ed65f287344e74d5c3c909?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/628f91dd9668ebaab062522a91e12c1b7d2491d6?format=markdown)
