LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-13-2006, 03:23 PM   #1
Lucky13
LQ Newbie
 
Registered: Nov 2006
Posts: 11

Rep: Reputation: 0
Cannot edit .conf files


Hi,
When I edit a file (i.e. resolv.conf) and I save, I get the following message "Unable to make a backup of the file" and "Unable to write to file". Can anyone tell me how I should edit files.
Thank you.
 
Old 12-13-2006, 03:26 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Are you editing as an unprivelaged user? You need to edit them as the privileged (root) user.
 
Old 12-13-2006, 03:36 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Arow
Are you editing as an unprivelaged user? You need to edit them as the privileged (root) user.
Easiest to do using command-line (in a terminal)
su to become root
nano filename
or
<your favorite editor> filename
 
Old 12-13-2006, 04:37 PM   #4
Lucky13
LQ Newbie
 
Registered: Nov 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Hi Pixellany,
How do exit from nano with changes saved?
Thanks.
 
Old 12-13-2006, 04:54 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
ctrl-x
y to confirm saving
enter filename

The ctrl codes are all in the footer of the nano window.

It takes getting used to, but I have come to really like nano
 
Old 12-13-2006, 06:46 PM   #6
Lucky13
LQ Newbie
 
Registered: Nov 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks Pixellany.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't edit Xorg.conf pautasso Linux - Newbie 3 08-14-2004 09:27 AM
Can not edit httpd.conf xtra Linux - Newbie 6 08-12-2004 02:40 AM
xorg.conf > how to edit ? visvent Linux - Software 3 06-07-2004 01:14 PM
[SOLVED] How to edit grub.conf filosophem Red Hat 4 02-07-2004 03:04 AM
Edit grub.conf NoviceW Linux - General 1 11-11-2003 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 PM.

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