• @[email protected]
    link
    fedilink
    57 days ago

    You are supposed to run sudoedit.
    This command creates a temporary copy, opens it in you editor of choice and overwrites the protected file when the temp file changes.
    That way the editor doesn’t run as root.
    You can see the difference if you run shell command, like whoami, in vim.

    • juipeltje
      link
      fedilink
      16 days ago

      Ah, thanks for clarifying. I hadn’t heard of sudoedit before but that makes a lot of sense.