(I originally posted this on apple.stackexchange but then I found this one which is probably a better place)
I have a big problem. I've freshly installed mac os and was setting up my terminal. I installed iTerm, zsh and oh-my-zsh (following this tutorial, basically: https://medium.com/ayuth/iterm2-zsh-oh-my-zsh-the-most-power-full-of-terminal-on-macos-bdb2823fb04c)
After installing oh-my-zsh, I got this error message (this is just a random question showing that same error message):
I remember that the fix to this was running the suggested command (I've done this a few years ago):
compaudit | xargs chmod g-w,o-w
I think that was the last thing I did. Now every time I start a terminal (either Mac OS'
iTerm, doesn't matter) it gets stuck at "login" with a blank screen. I don't get any input prompt.
Even worse, I can't even shut down the mac anymore. When I click on shut down or restart, every app is closed and I see my wallpaper and nothing happens. I have to kill it via the power button.
After restarting, the terminal works perfectly again until I close it with
CMD-q. Once I reopen it, it's stuck again at "login".
I've looked everywhere and can't find a solution.
I've seen this question (https://apple.stackexchange.com/questions/267668/terminal-login-hangs) but it didn't help. I tried almost everything proposed there.
I would greatly appreciate any help or thoughts on this.
Also, it works when I boot into safe mode. There, everything is fine.