Skip to content

Instantly share code, notes, and snippets.

@shaneturner
Created June 14, 2018 23:49
Show Gist options
  • Save shaneturner/bc9fc0b8915852f389edb148854b57a7 to your computer and use it in GitHub Desktop.
Save shaneturner/bc9fc0b8915852f389edb148854b57a7 to your computer and use it in GitHub Desktop.
Set normal permissions on files and directories
#!/bin/bash
# Sets 644 for files and 755 to directories in current directory and sub directories
find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment