scripts/helios/permissions-storage.sh

5 lines
193 B
Bash

#!/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