Skip to content

Instantly share code, notes, and snippets.

@simongregory
Created November 24, 2016 11:19
Show Gist options
  • Save simongregory/3f055a5b16f778d145c2f6f7309c9873 to your computer and use it in GitHub Desktop.
Save simongregory/3f055a5b16f778d145c2f6f7309c9873 to your computer and use it in GitHub Desktop.
chmod extended attributes on os x
# Use -e to describe
ls -el
#ie:
#-rw-r--r--+ 1 simon staff 25063 14 Nov 20:32 index.html
# 0: group:everyone deny delete
# 1: group:admin allow read,readattr,readextattr,readsecurity
# Then recursively remove with
chmod -R -a "group:everyone deny delete" .
chmod -R -a "group:admin allow read,readattr,readextattr,readsecurity" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment