I'm trying to eliminate some mysterious "Evolution" notifications I keep getting. Google tells me to edit the /etc/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop
file, but it is owned by root and it opens as read-only in the text editor. I figure I can sudo the Vi editor or equivalent. I suppose I could also sudo chown to my user account, but that seems kludgey.
In my search for the answer to the above question, I found a post talking about how the root account is disabled in Ubuntu (with great reasons given, no argument there) and being unnecessary because of sudo. How do you do something as simple as editing a configuration file that is owned by root?
sudo vi
") – muru Apr 14 '22 at 16:40~/.config/autostart
and edit it there? That doesn't require elevated permissions at all - and any changes won't risk being overwritten by subsequent system updates. – steeldriver Apr 14 '22 at 16:51man sudoedit
, set up your$EDITOR
and$VISUAL
environment variables and it's easy. – waltinator Apr 14 '22 at 23:00