set permissions on email scripts