#!/bin/sh while read -r mod user group path; do chown -c "$user:$group" -- "$path" chmod -c "$mod" -- "$path" done < "$1"