Changes the owner of all sub-directories and files in target directory:
chown -R user.name:user.group /target_dir
Changes permissions of all sub-directories and files in target directory:
chmod -R 777 /target_dir
very very slowly
Changes the owner of all sub-directories and files in target directory:
chown -R user.name:user.group /target_dir
Changes permissions of all sub-directories and files in target directory:
chmod -R 777 /target_dir