stripping out ACLs

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

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

1 comment so far ↓

#1 shrop on 12.18.08 at 5:15 pm

Very handy code..thanks!