I have a problem with editing config files. E.g. in the opt/ folder. I understand that I need to do this as root. But even with
sudo gedit path/filename
it doesn’t work (see screenshot).
With sudoedit I could edit the file but when I tried to save it (overwrite the old one) I got the error message „no permission“.
I have the permission to execute sudo since „sudo -i“ works (see second pic).
I tried gedit admin/// as well. Didn’t work as well.
Of course, I tried to edit the file with a graphical editor as well. Same result.
And I tried to edit other config files (e.g. in etc/): same result.
What am I doing wrong?
(I’m a beginner with Ubuntu/Linux, so, excuse if it’s an easy to solve mistake, what I hope for!)