#!/bin/sh # fixperms -- make sure all files are readable. cd /stage find . -type f ! -perm -004 -print | xargs chmod a+r find . -type d ! -perm -005 -print | xargs chmod a+rx