fix permission for logs