Using “sudo -e” rather than “sudo nano” gets around this problem by invoking your editor as yourself on a temporary buffer rather than as root. See the description of -e in the sudo(8) manpage.
Using “sudo -e” rather than “sudo nano” gets around this problem by invoking your editor as yourself on a temporary buffer rather than as root. See the description of -e in the sudo(8) manpage.