Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Bug fix | 7 comments | Create New Account
Click here to return to the 'Bug fix' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Bug fix
Authored by: blanalex on May 01, '07 12:58:39PM
I've found out later that I made a small mistake: the filename should be enclosed in quotes (") because the filenames might contain whitespace. So the one-line will look like this:
until ! { /bin/chmod -a# 0 "filename" 2> /dev/null; } do echo -n;  done
and the script will look like that:
for file in $(find "$@")
do
        until ! { /bin/chmod -a# 0 "${file}" 2> /dev/null; } do echo -n;  done
done
This method is not really fast but it's the only one I've found to erase all the ACEs. I've used this command on a medium-sized webserver (175,000 files), with each file having 3 ACEs and it took over 2 hours and a half to complete.

[ Reply to This | # ]