Change permissions
Change temp file permission