#!/bin/bash
# Synopsis: The concept is to allow for a Bash $Variable to quickly name Harddrives & Folders where you store your Media. After re-installation or changes to your OS. sometimes permissions and ownership can be modified the wrong way.
find $1 -type f print0 | xargs -0 chmod -Rc 644 # Change all files recusively to 644
find $1 -type d -print0 | xargs -0 chmod-Rc 755 # Change all directories recursively to 755
chown $USER -R $1 # Change ownership to current user