# Disallow running Zed with root privileges \(\#31331\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4f8d7f0a6b72a2e7da9d15a1ead9e8436be914e6

Requested commit: 4f8d7f0a6b72a2e7da9d15a1ead9e8436be914e6

Commit: 4f8d7f0a6b72a2e7da9d15a1ead9e8436be914e6

Tree: a2ef66291efa0006c94724a11ee64f8cd52f0033

Author: Yaroslav Pietukhov

Committer: GitHub

## Message

```
Disallow running Zed with root privileges (#31331)

This will fix a lot of weird problems that are based on file access
issues.

As discussed in
https://github.com/zed-industries/zed/pull/31219#issuecomment-2905371710,
for now it's better to just prevent running Zed with root privileges.

Release Notes:

- Explicitly disallow running Zed with root privileges

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
```

## Parents

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

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