LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-21-2008, 02:45 PM   #1
ncarl384
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Rep: Reputation: 0
Can't develop permission to edit menu.lst


From the Ubuntu terminal (as root) I am trying to edit /boot/grub/menu.lst.

When I finish editing, I get the same message re: permission to change a read-only file.

I have tried sudo and su but the permission is still required.

Can someone give me a step-by-step approach to changing to file characteristic, editing the file, and returning it to grub as edited so that it comes up at boot?
 
Old 10-21-2008, 02:58 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
editors like vi will allow you to override the attribute by force, and it's there for a good reason, so keep it as it is. under vi, just use :w! to force a save from sudo.
 
Old 10-22-2008, 11:50 AM   #3
ncarl384
LQ Newbie
 
Registered: Oct 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks

Thanks. I'm just starting Vi and the instruction list I had was somewhat arcane. I think I'm on the right track now.

NO! At the end of the edit I typed :w! and vi refused the command.

what's wrong now ???

Last edited by ncarl384; 10-22-2008 at 03:43 PM.
 
  


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
Pen Drive Install. Edit Grub menu.lst n8tgc DamnSmallLinux 3 01-04-2008 01:42 PM
Right way to edit /boot/grub/menu.lst ? eeried Linux - Software 2 02-07-2007 09:59 AM
How to edit /boot/grub/menu.lst of the host satimis Linux From Scratch 1 09-25-2005 08:21 AM
anyone know how to edit the /boot/grub/menu.lst? plzz help earth.hero Linux - Newbie 17 03-26-2005 11:15 AM
How do I edit a file like menu.lst ? mranderson Red Hat 1 11-16-2003 05:39 PM


All times are GMT -5. The time now is 12:26 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