LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training 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 03-23-2004, 05:55 PM   #1
BadBigShot
LQ Newbie
 
Registered: Mar 2004
Location: Montréal, Québec
Distribution: Mandrake
Posts: 4

Rep: Reputation: 0
Question Modify lilo.conf when not logged in as root


Hi fellow-helpers,

I just installed Mandrake 10.0 in dual boot with Win2000. It is the first time I install a non-microsoft os on my machine and the first time I use it by myself so... i'm not so used to it. Mandrake installed Lilo as the boot loader and set up Linux as the default os. Since I am still shamefully using Windows more than Linux, i want to modify lilo's config file.

I found that this file is located in etc/lilo.conf. I am able to read this file but since I am not logged in as root or admin or whatever, I don't have a write permission.

I'm searching for a point-and-click type of anwser but I am also interested to know how the good guys do it.

Thanks in advance,
BBS

PS: I am using KDE
 
Old 03-23-2004, 05:59 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
you'll need to logout, then login as root. you may then use any text editor for your changes. the other option is from a command line

su -
password <root password>

pico /etc/lilo.conf

pico is a command line text editor, fairly easy to use.
good luck.

<edit>don't forget to run lilo after you've made changes

/sbin/lilo </edit>

Last edited by Peacedog; 03-23-2004 at 06:00 PM.
 
Old 03-23-2004, 06:02 PM   #3
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
don't know a point/click way - but you can open a terminal (click the screen with the shell on it in the default panel) - then at the prompt type

su

then type the root passwd you set during install. then, launch the text editor you want to use from that terminal window, by typing the name of the editor there. to get back to user mode, type

exit






Last edited by Genesee; 03-23-2004 at 06:04 PM.
 
Old 03-23-2004, 06:09 PM   #4
BadBigShot
LQ Newbie
 
Registered: Mar 2004
Location: Montréal, Québec
Distribution: Mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
I read that login as root is to be avoided for security reasons. Is there a way to modify this file without logging out from KDE but by just getting the proper permissions to perform the action?
 
Old 03-23-2004, 06:11 PM   #5
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
Quote:
Originally posted by BadBigShot
I read that login as root is to be avoided for security reasons. Is there a way to modify this file without logging out from KDE but by just getting the proper permissions to perform the action?
check post #3 above
 
Old 03-23-2004, 06:13 PM   #6
BadBigShot
LQ Newbie
 
Registered: Mar 2004
Location: Montréal, Québec
Distribution: Mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks to both of you!! Gonna try this now.
 
Old 03-23-2004, 06:15 PM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Loggin in as root should only be avoided when you have no reason to be root. The security reason is just that it's all-too-easy to accidentally delete a file and damage the system when logged in as root. If you actually have changes to make, such as modifying the lilo.conf file then there's no problem. The su method outlined by someone above is good because you su, enter the root password, do what you need to do and then type exit to stop being root.
 
Old 03-27-2004, 12:09 PM   #8
BadBigShot
LQ Newbie
 
Registered: Mar 2004
Location: Montréal, Québec
Distribution: Mandrake
Posts: 4

Original Poster
Rep: Reputation: 0
I finally found a point-and-click way to do this. Here's a simple mummy-friendly task list:

1) Click the "Star" button
2) Select "System\Configuration\Configure your computer"
3) In the popup window, enter your root password
You're now in the "Mandrake Control Center"
4) Click the "Boot" icon
5) Click the "Boot loader" icon
6) Click the "Next" button
7) In the listing, select the OS you want to boot with
8) Click the "Modify" button
A new configuration window appear
9) Check the "default" checkbox
10) Click the "OK" button
11) Click the "Finish" button in the "Mandrake Control Center"
You're done! Congratulations!
 
  


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
Using the 2nd CD: logged in as root@rescuedisc, change lilo.conf file or any files? jtp51 Slackware 3 11-02-2004 10:14 AM
lilo.conf and lilo.conf.anaconda difference blackzone Linux - General 1 07-06-2004 04:15 AM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 05:27 PM
Need to modify - modules.conf lowlifeboy Debian 3 02-22-2004 03:52 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 09:34 PM

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

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