debug script permissions