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

2 comments ↓

#1 shrop on 12.18.08 at 5:15 pm

Very handy code..thanks!

#2 TRUDYAcosta18 on 05.22.10 at 5:42 am

Every body remembers that humen’s life is not cheap, but some people need money for different issues and not every man earns enough cash. So to receive good home loans or just car loan will be a right solution.

Leave a Comment