Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
Created May 1, 2017 05:43
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 ahmadawais/fde5b9c0c303d8fcdb6837b4e6ef2ec2 to your computer and use it in GitHub Desktop.
Save ahmadawais/fde5b9c0c303d8fcdb6837b4e6ef2ec2 to your computer and use it in GitHub Desktop.
MAC: Change the Directory Permissions Owner
#!/usr/bin/env bash
# Will assign the dir to the current user.
# Usage: sh mac_permissions_to_user.sh the/dir/path
sudo chown $USER "$@1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment