testing permissions shell script