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


Click here to return to the 'A scriptable solution to flush Access Control List entries' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A scriptable solution to flush Access Control List entries
Authored by: joelbruner on Jan 19, '11 11:46:57AM
chmod now has the -N option that will flush all ACLs, no recursion necessary
#!/bin/bash
IFS=$'\t\n'
find "${@}" -exec chmod -N {} \;
The IFS (internal field seperator) entry omits space as a seperator, so folders with spaces are handled properly

[ Reply to This | # ]