#permissions
22 solutions
Fix 'Permission denied' when running a shell script on macOS by adding the execute permission with chmod.
Archive copy files and directories keeping ownership, permissions, symlinks and timestamps intact on Linux.
Set owner-only permissions on your SSH private key with chmod 600 so ssh will use it and other users can't read it.
The CLI behind the Security tab — add or strip ACEs on files and folders without opening Explorer.
Clear mistakenly denied camera, microphone, or automation permissions so macOS asks again.
Make sensitive files readable only by you, and scripts executable, using octal permission modes.
The fastest way to see which privileges your token actually holds — most are listed but disabled until something enables them.
tccutil resets the TCC privacy database entries — the fix for apps that can no longer ask for camera, microphone, or screen-recording consent.
Check which groups grant a user their sudo, docker, or file permissions — the first diagnostic for 'permission denied'.
Dump the ACL of any file or folder with icacls, then grant, deny or reset permissions with inheritance control.
Undo broken or chaotic NTFS permissions on a folder tree by making every file inherit fresh ACLs from its parent with icacls /reset /t.
The forgotten octal that decides how open every new file is — run `umask` to see it, `umask 027` to tighten it for this shell.