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
2 comments ↓
Very handy code..thanks!
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