Created
August 21, 2011 00:41
-
-
Save jj1bdx/1159902 to your computer and use it in GitHub Desktop.
When you forget "umask 022" to install FreeBSD ports...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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