To make the question better understood -> I currently have to run nano with sudo when i just want to run nano to edit a file.
So while I was fiddling with Ubuntu 20.04 in a VM I had everything more or less working in a way that I felt comfortable putting it onto an old laptop. In the VM I could just run ~$ nano , write what I wanted to into that file and then write out and save/exit nano and my file will be there. Now with the laptop that I put Ubuntu 20.04 on I need to run nano with sudo in order to write out and save/exit the file I was working on. When trying to edit my file 'Mounting a device' with just nano I am greeted with:
[File 'Mounting a device' is unwritable]
and if I try to write out I get:
[Error writting Mounting a device: Permission denied]
To be clear these aren't system files or config files or anything of that sort. These are files like "Bash commands and how to use", "How to mount a device", "test file 1", etc. Is it something to do with the user account I created or what could I have done wrong where?
I have only been using Ubuntu for about 6 months or so as my daily system so I'm still getting used to everything. I would like to be able to run nano to make day-to-day files and file edits without having to do it with sudo. Any idea on how I can change this?
The output of the
ls -l is as follows:
peter@pbes:~/Documents/Bash command instructions$ ls -l
-rw-r--r-- 1 root root 351 Nov 1 08:35 AppImage
-rw-r--r-- 1 root root 570 Feb 5 00:20 Docker
-rw-r--r-- 1 root root 1030 Sep 23 23:59 'Mounting a device'
-rw-r--r-- 1 root root 442 Nov 8 21:13 PPA
-rw-r--r-- 1 root root 361 Oct 11 09:37 'Shutter install'