Change permissions mode for testing dirs.