Add sudo rights to log and cache creation