Skip to content

Instantly share code, notes, and snippets.

@whomwah
Last active April 11, 2019 08:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whomwah/2018051 to your computer and use it in GitHub Desktop.
Save whomwah/2018051 to your computer and use it in GitHub Desktop.
xattr OSX privs

Use the xattr command. You can inspect the extended attributes:

$ xattr s.7z
com.apple.metadata:kMDItemWhereFroms
com.apple.quarantine
and use the -d option to delete one extended attribute:

$ xattr -d com.apple.quarantine s.7z
$ xattr s.7z
com.apple.metadata:kMDItemWhereFroms
you can also use the -c option to remove all extended attributes:

$ xattr -c s.7z
$ xattr s.7z
xattr -h will show you the command line options, and xattr has a man page.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment