# -+- number -+- category -+- title -+- email -+- name -+- homepage -+- clickOnName -+- language -+- image -+- browser-used -+- security-cookie =0 -+- 2004-02-23:3 -+- UNIX Basics -+- what to do when not able to login to Linux (forgottten the password) ? -+- abhinavs@ureach.com -+- Abhinav Srivastava -+- -+- nolink -+- English -+- -+- Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 -+- 9119

Sometime it happens that user forgets its password (also the root password) and not able to login into the linux.

To login into the system, boot the linux and at the boot prompt type the following command:

linux -s

This will boot the linux in the single user mode and gives the root prompt to enter the new root password without asking the old one. Type following command at the prompt:


#passwd {give new password}

#exit

By typing the exit, normal boot process will continue and prompts the user for login/passsword.