# Change Ownership of the folder
sudo chown -R username:username /path/to/folder
# -R Makes it recursive
# Set Permissions
# To give the user (u) read (r), write (w), and execute (x) permissions = u+rwx
sudo chmod -R u+rwx /path/to/folder
# To give the group (g) read (r), write (w), and execute (x) permissions = g+rwx
sudo chmod -R g+rwx /path/to/folder
# To give the others (o) read (r), write (w), and execute (x) permissions = o+rwx
sudo chmod -R o+rwx /path/to/folder
# Verify Permissions
ls -l /path/to/folder