I have been trying to get nano to work, but I keep running into permission denied problems where vim (vi) works.
I have downloaded 2 versions of nano
sudo snap install nano-strict following this guide:
https://discourse.ubuntu.com/t/using-ubuntu-core/24056
and
sudo snap install nano-editor
With nano-strict I am able to create files in the /home directory, however, I am not allowed to read,edit or create files in /etc/systemd/system/ where I wanted to create new service, with our without sudo. However, with sudo vi I am able to create files there, but I am not the best at vim, so I work very slowly using it.
Error I am getting in full:
[ Error writing /etc/systemd/system/test.service: Permission denied ]
When it came to the nano-editor I was unable to use snap connect on it, and it is unable to create or read files anywhere. And get this error when I try to write (ctrl+s):
[ XOFF ignored, mumble mumble ]
And when I get the normal permission dedied error when I hit ctrl+x to quit, and it askes me to save, and I say yes:
[ Error writing /etc/systemd/system/test.service: Permission denied ]
Any idea how to get nano to work on ubuntu core with same permissions as vi?