LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-05-2003, 06:10 PM   #1
big_wren
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
Angry Grub boot loader


I have grub to dual boot Redhat Linux 8 and Windows Xp. For windows xp it calls it dos, i want to change the name on but linux wont let me configure the grub.conf file
 
Old 02-05-2003, 07:35 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Are you logged in as a regular user?

Only root can edit the file.
 
Old 02-05-2003, 07:40 PM   #3
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you need to be root to edit that file. Also if it's read only you will need to overide the read only setting. This depends on what you are editing with. With vi you can use this

:w!

instead of

:w

if you are using some other editor that will not suppport overiding a read only permission you will need to change it



ls -l `locate grub.conf`
-rw-r--r-- 1 root root 688 Dec 21 12:35 /boot/grub/grub.conf
lrwxrwxrwx 1 root root 22 Dec 17 17:12 /etc/grub.conf -> ../boot/grub/grub.conf


ls -l /boot/grub/grub.conf
-rw-r--r-- 1 root root 688 Dec 21 12:35 /boot/grub/grub.conf


note this file not it's link is -rw for root, so root can edit it.


This is set with chmod

chmod 644 /boot/grub/grub.conf
 
Old 02-06-2003, 02:02 AM   #4
big_wren
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Original Poster
Rep: Reputation: 0
I am logged in as a regular user....
how do i log in a root?
(i am very new to linux)
 
Old 02-06-2003, 02:20 AM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
"root" is the system administrator account. Essentially, root has the ability to do anything to the system regardless of permissions. When you installed Red Hat, it asked you for an administrator password (I believe it had a yellow badge for an icon next to it). The password you entered there is the password for the root account. Later in the install, it asked you to create additional accounts. Any account you created in that step is a "regular user".

The best way to do this is to log in as one of the regular users you created and temporarily switch to the root account to do administrative tasks. You use the "su" command to do this, like so:
Code:
su
Password: <type root password here>
If successful, you'll get a prompt back. If not, it will complain about the password not matching. Once you're root, then edit the GRUB configuration file. Once finished editing, type "exit" at the command prompt to return to a regular user.
 
Old 02-06-2003, 12:29 PM   #6
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
The changes that you need to make, need to be made to the /boot/grub/menu.lst. They need to be done as the root user.
 
Old 02-06-2003, 03:28 PM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
that depends.

My menu.lst file is a link to grub.conf. As I said be sure to look at the file. However I do believe that the file should be -rw so you can open the link and it will actually open the right file.

ls -l `locate menu.lst`
lrwxrwxrwx 1 root root 11 Dec 17 17:12 /boot/grub/menu.lst -> ./grub.conf
 
  


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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 06:45 PM
GRUB boot loader blocking windows boot julienroger Linux - Newbie 3 10-12-2004 02:11 PM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM
Need help with boot loader. Multi boot questions. Grub? 1993gt40 Linux - Software 1 10-16-2003 09:28 PM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 03:22 AM


All times are GMT -5. The time now is 09:48 AM.

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