Explicitly set permissions on temp folder

Refs #2129