#!/bin/bash find /mnt/storage/backuphdd -type f -print0 | xargs -0 chmod 0640 find /mnt/storage/backuphdd -type d -print0 | xargs -0 chmod 0750 chown -R root:root /mnt/storage/backuphdd exit 0