Add FAQ entry advising against OMZ installs for root (#35)

Olivia (Zoe) 2023-08-17 20:16:18 +02:00 committed by GitHub
parent 8e637ab0ec
commit ea5c1263fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

10
FAQ.md

@ -342,3 +342,13 @@ If you want this behavior to change, set the `WORDCHARS` variable in your zshrc
```zsh
WORDCHARS='_-*'
```
## Why shouldn't I install Oh My Zsh as root?
If something goes wrong with your config or Oh My Zsh, you risk breaking your system without a way to get back in, at least not without spinning up a live environment or doing a clean install. While this is rare, rare it's far more likely than with an OS stock config for the root user.
In general, it's a good idea to leave the root user's config as untouched as possible, to help avoid error recovery and security problems. This includes leaving its shell as the system default (usually bash on Linux), and not installing Oh My Zsh for the root user.
You _can_ still install Oh My Zsh for the root user, but it isn't a good idea.
See also: [Why is it bad to log in as root?](https://askubuntu.com/a/16179/452364)