Update misc.sh

Updates to some miscellaneous permission fixes.