This is a static archive of the old Zorin Forum.

The information below may be outdated. Visit the new Zorin Forum here ›

If you have registered on the old forum, you will need to create an account on the new forum.

How to save a read-only file in GUI

ozstar

Tue Mar 10, 2020 8:08:24 pm

Hi,

I have a read only conf file I need to change and save.

I have tried many things but can never seem to get anything to save in that extra directory.

How can I do this please in GUI?

Thanks

Swarfendor437

Tue Mar 10, 2020 8:17:41 pm

Have you tried:

Code:
sudo nano edit [name of .conf file]


:?:

Aravisian

Wed Mar 11, 2020 3:22:48 am

ozstar wrote:Hi,

I have a read only conf file I need to change and save.

I have tried many things but can never seem to get anything to save in that extra directory.

How can I do this please in GUI?

Thanks

You can also open your file in elevated text editor. If you are using gedit, for example:
Code:
pkexec gedit
then Open File from within the gedit window.

carmar

Wed Mar 11, 2020 5:01:54 pm

Code:
sudo nautilus


Be very careful because now nautilus has the ability to add/delete root folders/files.

If you were asking just for permissions then right click and select Properties and then the Permissions tab and change as you wish.

ozstar

Thu Mar 12, 2020 12:22:58 am

MMmm Tried but got this.. any ideas why?

Code:
david@david-HP-Compaq-6000-Pro-MT-PC:~$ pkexec gedit
Unable to init server: Could not connect: Connection refused

(gedit:17841): Gtk-WARNING **: 11:08:47.751: cannot open display:


but the sudo nautilus one did work. I was able to save (replace) the conf file.

Thank you both, but I'd like to know why the other didn't work.

oz

Swarfendor437

Thu Mar 12, 2020 2:02:06 am

ozstar wrote:MMmm Tried but got this.. any ideas why?

Code:
david@david-HP-Compaq-6000-Pro-MT-PC:~$ pkexec gedit
Unable to init server: Could not connect: Connection refused

(gedit:17841): Gtk-WARNING **: 11:08:47.751: cannot open display:


but the sudo nautilus one did work. I was able to save (replace) the conf file.

Thank you both, but I'd like to know why the other didn't work.

oz


Interesting read here:

https://askubuntu.com/questions/802649/ ... hen-sudo-i

ozstar

Thu Mar 12, 2020 3:28:18 am

Yes interesting read. At my level sudo will do I think !