Skip to content

Instantly share code, notes, and snippets.

@jj1bdx
Created August 21, 2011 00:41
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 jj1bdx/1159902 to your computer and use it in GitHub Desktop.
Save jj1bdx/1159902 to your computer and use it in GitHub Desktop.
When you forget "umask 022" to install FreeBSD ports...
#!/bin/sh
# generic port permission fix script
# when you forget "umask 022"
cd /usr/ports
find . -type d -not -perm -001 | xargs chmod go+rx
find . -type f -and -not -perm -444 | xargs chmod go+r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment