Skip to content
ohsudo, Home

Tags

#macos

zsh: permission denied
macOS

"zsh: permission denied" when running a script: the execute bit, and other causes

Fix "zsh: permission denied" on macOS or Linux: add the execute bit with chmod +x, check the path is a file and not a folder, and spot noexec mounts and missing rights.

Beginner · 3 min read

Operation not permitted
macOS

macOS Terminal "Operation not permitted", even with sudo: Full Disk Access and SIP

Fix macOS "Operation not permitted" in Terminal, even with sudo: give Terminal Full Disk Access, and understand System Integrity Protection and app permissions.

Beginner · 4 min read

command not found: brew
macOS

macOS "zsh: command not found: brew": add Homebrew to your PATH

Fix "zsh: command not found: brew" on macOS: Homebrew lives in /opt/homebrew on Apple silicon. Add brew shellenv to .zprofile, or install it if it isn't there.

Beginner · 4 min read

is damaged and can
macOS

macOS "App is damaged and can't be opened": what it really means, and the safe fix

Fix macOS "App is damaged and can't be opened. You should move it to the Trash": check the signature, remove the quarantine attribute with xattr, and know when not to.

Beginner · 4 min read

xcrun: error
macOS

macOS "xcrun: error: invalid active developer path": fix it after a macOS update

Fix macOS "xcrun: error: invalid active developer path" when git, make or brew stop working: reinstall the Command Line Tools, or point xcode-select to Xcode.

Beginner · 2 min read