Reset passwords by booting into single-user mode in NIX

A) Booting into single-user mode from LILO

Follow these steps to reset the password when using LILO:

Reboot the system. When you see the LILO: prompt, type in linux single and press ‘Enter’. This will log you in as root in single-user mode. If your system requires you to enter your root password to log in, then try linux init=/bin/bash instead.

Once the system finishes booting, you will be logged in as root in single-user mode. Use passwd and choose a new password for root.
Type reboot to reboot the system and then you can login with the new password you just selected.

If you have a new version of LILO which gives you a menu selection of the various kernels available press Tab to get the LILO: prompt and then proceed as shown above.

B) Booting into single user mode from GRUB

Follow these steps to reset the password when using GRUB:

Reboot the system, and when you are at the selection prompt , highlight the line for Linux and press ‘e’. You may only have 2 seconds to do this, so be quick.

This will take you to another screen where you should select the entry that begins with ‘kernel’ and press ‘e’ again.

Append ‘ single’ to the end of that line (without the quotes). Make sure that there is a space between what’s there and ‘single’. If your system requires you to enter your root password to log into single-user mode, then append init=/bin/bash after ‘single’. Hit ‘Enter’ to save the changes.

Press ‘b’ to boot into Single User Mode.
Once the system finishes booting, you will be logged in as root. Use passwd and choose a new password for root.
Type reboot to reboot the system, and you can login with the new password you just selected.

njoy the simplicity…….
©http://linuxgazette.net

Advertisements

About victimizeit
This is Atul.. working for IBM as a DataStage Developer. I may not be an expert on any particular DataStgae technology, but I'm sure I do know a few things about DB2, AIX, Unix, Windows, and DataBase. In this blog, I'll give out some tips on these subjects. If you find them useful, great, I'll be happy. Thanks for stopping by !!

What is your opinion ?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: