Updated permissions.sh file
Updated against security flaw