Set security settings for temp file.