Last active
April 8, 2021 07:17
-
-
Save jarkkojs/5b3e2fae0709eb8158825c8f6c420d49 to your computer and use it in GitHub Desktop.
Fix home directory permissions
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/bash | |
find $HOME -perm /o=rwx -type f -not -path "$HOME/pCloudDrive/*" -print0 | xargs -0 chmod o-rwx | |
find $HOME -perm /o=rwx -type d -not -path "$HOME/pCloudDrive/*" -print0 | xargs -0 chmod o-rwx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment