shell script to set permissions