Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 01-15-2007, 06:01 PM   #1
LQ Newbie
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
how to reset root password

I have lost my root password , how can I reset it?
Old 01-15-2007, 06:10 PM   #2
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
Hi, there are a few ways to do this.

If you are using LILO as bootloader:

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.

When it has booted into single-user mode use: 'passwd'
to change the password. then just type: reboot or shutdown -r now
to reboot and the new password should be working.

If you are using grub as bootloader:

When ur in the bootloader, highlight whichever line you boot with and press 'e'. This brings u to a screen where you should highlight the line that starts with 'kernel' and press 'e' again.

Behind the line insert: 'single'

hit enter to save change.
and press 'b' to boot.

If this doesn't work place behind single: 'init=/bin/bash'

and once again use passwd to change the password and type reboot / shutdown -r now to reboot the system.

IF this doesn't work you could also try using a live cd such as knoppix!


Last edited by puntjuh; 01-15-2007 at 06:11 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reset Root password hbenway AIX 9 08-19-2008 04:13 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
reset root password powah Linux - Security 5 09-15-2006 01:30 PM
reset root password kapslock Debian 14 07-27-2006 07:08 AM
Reset Root password sdsouza Linux - Software 5 11-12-2003 04:50 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration