Make sure correct permissions are set.