Welcome to

LINUX WORLD

Rohit Mehta : A Linux Follower

bangalore, Karnataka, India
hi! i m a person who is chill all time. Since jan 2008 i am working for Novell software. The word Impossible does not exist in my dictionary because Impossible says i m possible...hey guys have fun with linux...it begins but has no end......
Showing posts with label Password. Show all posts
Showing posts with label Password. Show all posts

Tuesday, November 17, 2009

How To Set A Password For Grub At Boot Time in linux


http://funlinuxfun.blogspot.com/
1Grub is the linux default bootloader.
Setting up a password in grub is quite an easy task.you can set the password just at boot time to prevent anyone from logging into the system in any mode.
here is how to do it.
Enter the command line and type

#grub-md5-crypt
you will be prompted to enter the password..after entering the password twice you will be provided with a encrypted value as shown below..
grub pass
copy this encrypted value.
now open the grub.conf file.
#vi /boot/grub/grub.conf
and enter the line
passwd   –md5    $1$Tqro5/$pkEbG8f4igg0oZRCoWznb1
where the above encrpted value is the one generated at the time when you entered the password.
also enter
lock
at the end of the red hat container as shown in the figure below.
dca
come out of the editor and then reboot.
#init 6
now at startup you will be asked for the password.
rh
press ‘p’ for password.
and enter the password.

How to Break root password in redhat/linux


http://funlinuxfun.blogspot.com/
system-root-passwordRoot account in linux is the supreme account holding all the privildges to manage and configure  your system.
Sometimes non-root users wish to login into the root account but doesn’t have the password or in times some bad users change the root password which disables root-user to login ,hence he need to change the password for his account  and setup a new password
Here are the all steps to change/break  password for root in linux even if previous password is not known:
Step 1:)
When the first  grub screen like the below snapshot appears  press ‘e’ on linux line entry:
linux grub screen
Step2)
After preesing “e” in the previous step the snapshot similar to the below snapshot appears. Move to the line which contains the word ‘kernel’ and  press  ‘e’
kernel screen
Step3)
Go to end of that line and after rhgb quiet write  1 as in the snapshot below…this means that you are setting your kernel to boot into single user mode also known as the maintenance mode.
third screen
Step4)
Then press “enter ” and then  ‘b’ to boot the system into run level 1:
Step5)
Now wait for the prompt and  write the following command :
#passwd root
maintenance mode
Now the password for root account has been changed and try login with the new account:

Which Linux distribution has ease of use?