Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-12-2004, 08:06 PM   #1
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
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.
Old 06-12-2004, 08:15 PM   #2
Senior Member
Registered: Oct 2003
Posts: 2,575

Rep: Reputation: 220Reputation: 220Reputation: 220
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.
Old 06-12-2004, 08:15 PM   #3
Registered: Dec 2003
Location: Next to Equator
Distribution: GNU/Linux 2.6.14
Posts: 382

Rep: Reputation: 30
try nano, a very simple editor
Old 06-12-2004, 08:26 PM   #4
Senior Member
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
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
Old 06-12-2004, 11:45 PM   #5
Senior Member
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
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.
Old 06-13-2004, 01:51 AM   #6
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.
Old 06-13-2004, 01:53 AM   #7
Senior Member
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
editing files zexter Linux - Software 2 11-05-2004 12:27 PM
editing files clemrick Linux - Newbie 4 11-02-2004 12:14 AM
Editing Files Rv5 Programming 3 09-08-2004 10:06 PM
Editing files Hone101 Linux - General 3 03-22-2003 01:47 PM
re: editing files malbowges Linux - Newbie 1 04-30-2002 08:53 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:13 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration