LinuxQuestions.org
Visit Jeremy's Blog.
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, 04: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, 04:26 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

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

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 05: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, 05:54 PM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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, 07:46 PM   #6
Lucky13
LQ Newbie
 
Registered: Nov 2006
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks Pixellany.
 
  


Reply


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 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 10:27 AM
Can not edit httpd.conf xtra Linux - Newbie 6 08-12-2004 03:40 AM
xorg.conf > how to edit ? visvent Linux - Software 3 06-07-2004 02:14 PM
[SOLVED] How to edit grub.conf filosophem Red Hat 4 02-07-2004 04:04 AM
Edit grub.conf NoviceW Linux - General 1 11-11-2003 06:51 PM


All times are GMT -5. The time now is 10: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration