Home

Forums

Web development

 

 

 

 
     
 
dna88 Web development and Technology Forum
 
Profile   Register   Memberlist   Usergroups   FAQ   Search  Log in
Linux Tips on boot loader

 
Post new topic   Reply to topic    dna88 Forum Index -> Linux and open source Discussion Forum
Author Message
tanveer
User
User


Joined: 21 Jun 2004
Posts: 85
Location: Dhaka,Bangladesh

Post Post subject: Linux Tips on boot loader Reply with quote

Tip #4:
In an earlier post, aronnok told that to switch between GUI and text base console we have to edit the /etc/initab file. Let me add a bit more on that :

The line was
id:5:initdefault: if u put 3 in place of 5 then it will boot to text base console.
Now if u want the OS to ask u at the time of loading which option u wanna go with then change the line to this:
id:initdefault:

Tip #5 :
If u forgot ur root password then enter into linux as single to recover ur root password. To enter into single user mode:

    1. when the grub boot loader screen appears then press 'e'. (e for edit) having the linux option selected.
    2. then it will give a new screen something like
    root(hd0,4)
    kernel /boot/vmlinuz-2.4.18-11 ro .........
    iniitrd /boot/initrd-2.4................
    Select the line with kernel and press 'e'
    3. it will then give a new window and type there giving a space
    linux single
    4. press ENTER and then press 'b' .
    5. It will then put u into a shell and change password for root .

For LILO the same except intead of pressing 'e' press CTRl+X and same above.

Tip #6:
using tip #6 anyone can enter into ur linux box as a root and GOD knows what he will do then. So to protect him entering in SINGLE user mode do this:

    1. open the file grub.conf using vi /etc/grub.conf
    2. type password ur-passwd
    3. save and reboot.

Now no one can enter as SINGLE user without knowing the password.

Tip #7:
But still Anyone can enter with a linux CD.
Just do this:

    1. insert first linux cd
    2. then type linux rescue
    3. it will give u a shell prompt and there u can change the root password by giving commnd the simple cmd of changing password.

So no protection at all

Friends, Let me know what u think of these, r they really helpful or what.
Tue Sep 21, 04 4:01 am
Back to top
tanveer View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    dna88 Forum Index -> Linux and open source Discussion Forum All times are GMT - 7 Hours
Page 1 of 1

 

Partners and Resources

Bangladesh hosting company

Bangladesh web design

Driven by phpBB © phpBB Group