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.