#!/bin/bash SUPERVISOR=$1 # Grant read and execute permissions to the supervisor user recursively setfacl -R -m u:"$SUPERVISOR":r-x . # Set the default ACL setfacl -R -d -m u:"$SUPERVISOR":r-x .