grunt-setmymode (npm): finds all files and directories under a given directory, and sets their permissions if owned by executing user
Keywords: gruntplugin