LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Help with editing files (https://www.linuxquestions.org/questions/linux-general-1/help-with-editing-files-192819/)

BajaNick 06-12-2004 07:06 PM

Help with editing files
 
Is there any way I can set permissions so that I can use kedit to edit text files without haveing to login as root just to make changes to a text file?
I absolutly cannot stand using Vim or emacs. They drive me crazy.

kilgoretrout 06-12-2004 07:15 PM

If your using kde, just open a console and run:

$ su
<enter root password>
# kedit

That should fire up kedit with root privileges. Navigate to the file you want to edit within kedit and start editing.

newinlinux 06-12-2004 07:15 PM

try nano, a very simple editor

heema 06-12-2004 07:26 PM

there is a great script called "Edit as root" which will enable when u right click on a file there will be an option called edit as root

BajaNick 06-12-2004 10:45 PM

I just updated slack and now when I do su kwrite at console it works, before It did not. I will also try the other suggestions anyway.
Thanks for the help all.

jschiwal 06-13-2004 12:51 AM

If you drag the kedit menu item onto the task bar, then you can set it up to run as root. Right click on the task-bar icon and select properties. Select the second tab, and click the 'run as user' box. Then enter root as that user. Now when you want to run kedit as root, you just need to click the kedit icon and enter the root password.

mrcheeks 06-13-2004 12:53 AM

you can do
xauth merge /home/username/.Xauthority if i remember not sure about the syntax though


All times are GMT -5. The time now is 11:00 PM.