LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   How to view some files permitteed to only root in GUI mode ? (https://www.linuxquestions.org/questions/mandriva-30/how-to-view-some-files-permitteed-to-only-root-in-gui-mode-529271/)

Peter_APIIT 02-15-2007 08:01 AM

How to view some files permitteed to only root in GUI mode ?
 
I have try to view some restricted only to root but it display an error message which is you have no permission to view this files. Therefore, i can't edit the file. As a result, i post this topic in order to find out a solution. I have successful view the file but can't edit it. I typed less filename to view the file but i don't know what command to edit a file.


Your help is greatly appreciated by me.


Thanks for your help.

Your help is more value than billion cash.

ernie 02-15-2007 02:36 PM

It is not hard to open a file for editing as root in the GUI. For this explanation I will show how to edit the file /etc/lilo.conf.

Open a terminal window and su to root. Enter the following:

kwrite /etc/lilo.conf

Your lilo configuration file will open in kwrite. You will be able to make changes to it and save the changes. To edit any other file replace '/etc/lilo.conf' with the name (including path to file) of the file you want to edit.

Or if you want to use the CLI, install the mc package then as root enter 'mc' at the command prompt. Midnight Commander will start. Navigate to the file you want to edit and press the F4 key. The file under the highlight will be opened in a text editor. You can save your changes with the F2 key and exit the editor with the F10 key. When you are done with Midnight Commander, you can exit it with the F10 key.

HTH,

Peter_APIIT 02-18-2007 01:59 AM

Hello ernie, such a nice you are. I feel you are good persons in the world. Anyway, thanks for your help.

Do you have MSN ID ? In future, we can communicate with each others.

My MSN ID is peter_wkc_20@hotmail.com .


Bye-Bye.

Peter_APIIT 02-18-2007 02:09 AM

I don't know how to express my feeling right now but i very appreciate your help.

Richie55 02-23-2007 02:47 AM

Hi, if you want to see the files konqueror as root,

go to te K menu then run and type

kdesu konqueror

Peter_APIIT 02-24-2007 11:34 PM

Thanks for your help. You all are my GOD. I will remember you all forever.


All times are GMT -5. The time now is 03:32 PM.