save-text function runs with sudo by default