Scrawls from Preston...

Powered by Pelican.

Mon 15 December 2008

stripping out ACLs

Here is a quick bash script to delete all ACLs from a file or folder:

#!/bin/bashLINECT=`ls -ed "$1" | wc -l`while [ $LINECT -gt 1 ]    do        chmod -a# 0 "${1}"        LINECT=`ls -ed "$1" | wc -l`    done


https://ptone.com/dablog