Reply
 
Thread Tools Display Modes
  #1  
Old 05-26-2009, 08:07 AM
Lol-x Lol-x is offline
Junior Member
 
Join Date: Jan 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Easy editing of system files?
Hi guys

I'm trying to edit the file pf.conf however I can't seem to save it in Kwrite.

It seems like there are a number of files that are protected as system files.

Rather than using Konsole is there some GUI way/pbi program to edit these files that is easier?

Thanks in advance.
Reply With Quote
  #2  
Old 05-26-2009, 11:57 AM
RancerDS RancerDS is offline
Junior Member
 
Join Date: May 2009
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Easy editing of system files?
Lol-x:
You probably can't save it because you don't have write permissions. You need to be logged in as "root" to be able to either save it or change the write permissions so that you can edit it as your KDE user login. You'll need to use the CHMOD command.

As to another editor, I use "ee" from the command line as root. It's a simple text editor, but it is pretty easy to use. The die-hard Unix folks all use "vi" because they can make changes with unbelievable speed (from knowing all the keystroke commands).
Reply With Quote
  #3  
Old 05-26-2009, 03:51 PM
unixornot unixornot is offline
Member
 
Join Date: Dec 2007
Location: Paignton, Devon, England
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Easy editing of system files?
Not being very proficient with "vi" I always edit system files by going into the konsole and typing:

Code:
kdesu kwrite
You'll be asked for the "root" password, kwrite will start and you will be able to edit and save files like pf.conf. By default, kwrite is configured to save a copy of the original file (in this case it would be named pf.conf~) which I find rather reassuring!
Reply With Quote
  #4  
Old 05-27-2009, 04:29 AM
graedus graedus is offline
Senior Member
 
Join Date: Jul 2006
Location: .mx
Posts: 606
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Easy editing of system files?
Also, you can invoke the same command within the run window (alt+f2)
Code:
kdesu kwrite
What kdesu does is to run with root (administrator) permissions any command.

Logging as root in kde is disabled by default. invoking kdesu or su from the command line returns the same problem: using the terminal.

The only solution I see to be just point-and-click is to find in the kmenu the "Konqueror, run as root", point the directory where the file you wish to edit is, right click and chose edit/open with kwrite. But still you will have to browse the filesystem, which still is unfriendly.

Unfortunately, there isn't a special section in the control panel for each and every configuration file.

I personally find much easier to open the konsole, su, locate the directory where the file to edit is, and use ee to edit it. ee is very user friendly, like kwrite, and with escape you can easily save or discard changes.
Reply With Quote
  #5  
Old 05-28-2009, 01:53 AM
Lol-x Lol-x is offline
Junior Member
 
Join Date: Jan 2009
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Re: Easy editing of system files?
Thanks guys, I appreciate all the help, awesome
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
system crashes by deleting files on ntfs-3g markison Drives 2 02-12-2008 05:27 PM
Way Too Easy!! jglen490 Laptops 12 12-30-2006 10:12 PM
Safe editing of configuration files? TerryP FreeBSD Help 3 08-17-2006 11:00 PM


All times are GMT. The time now is 09:43 PM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.