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
Hodgepodge of thoughts, technical notes, and random observations
December 15th, 2008 | Technology
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 ↓
Very handy code..thanks!
Leave a Comment