Results 1 to 4 of 4

Thread: what is the default root password in ubuntu

  1. #1
    Contributors chimu's Avatar
    Join Date
    Mar 2005
    Thanked 6 Times in 5 Posts
    Rep Power

    Default what is the default root password in ubuntu

    So what is the default root password in Ubuntu Linux? I do not remember if it prompted while installing the same on my laptop
    Last edited by nixcraft; 10th July 2009 at 12:11 AM.

  2. #2
    Contributors jaysunn's Avatar
    Join Date
    Apr 2009
    NYC - USA
    Thanked 154 Times in 133 Posts
    Rep Power

    Default Hello Sir

    Please have a look at this:

    A lost root password could be a bad day

    Ubuntu Linux root Password Default Password

    If that fails, try these steps:

    How-To: Recover root password under linux with single user mode

    It happens sometime that you can't remember root password. On Linux, recovering root password can be done by booting Linux under a specific mode: single user mode.
    This tutorial will show how to boot Linux in single user mode when using GRUB and finally how to change root password.
    During normal usage, a Linux OS runs under runlevels between 2 and 5 which corresponds to various multi-user modes. Booting Linux under runlevel 1 will allow one to enter into a specific mode, single user mode. Under such a level, you directly get a root prompt. From there, changing root password is a piece of cake.
    1. Entering Runlevel 1

    Some Linux distribution, such as Ubuntu for instance, offer a specific boot menu entry where it is stated "Recovery Mode" or "Single-User Mode". If this is your case, selecting this menu entry will boot your machine into single user mode, you can carry on with the next part. If not, you might want to read this part.
    Using GRUB, you can manually edit the proposed menu entry at boot time. To do so, when GRUB is presenting the menu list (you might need to press ESC first), follow those instructions:
    use the arrows to select the boot entry you want to modify.
    press e to edit the entry
    use the arrows to go to kernel line
    press e to edit this entry
    at the end of the line add the word single
    press ESC to go back to the parent menu
    press b to boot this kernel
    The kernel should be booting as usual (except for the graphical splash screen you might be used to), and you will finally get a root prompt (sh#).
    Here we are, we have gained root access to the filesystem, let's finally change the password.
    2. Changing Root Password

    As root, changing password does not ask for your old password, therefore running the command:
    # passwd

    will prompt you for your new password and will ask you to confirm it to make sure there is no typo.
    That's it, you can now reboot your box and gain root access again

    Last edited by jaysunn; 9th July 2009 at 08:18 PM.

  3. The Following User Says Thank You to jaysunn For This Useful Post:

    chimu (9th July 2009)

  4. #3
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Thanked 822 Times in 511 Posts
    Rep Power


    The default password is your own normal account password. Just type the following to become root user:
    sudo -s
    If you currently logged in as vivek user, type vivek's password.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]

  5. The Following User Says Thank You to nixcraft For This Useful Post:

    chimu (9th July 2009)

  6. #4
    Contributors chimu's Avatar
    Join Date
    Mar 2005
    Thanked 6 Times in 5 Posts
    Rep Power


    thx guys...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Default Broadband ADSL Router password for BSNL Dataone
    By sandeep23 in forum Computer Networking and Internet/broadband
    Replies: 17
    Last Post: 10th September 2012, 01:41 PM
  2. Ubuntu Set Default Runlevel /etc/inittab
    By lacloai in forum Linux software
    Replies: 8
    Last Post: 25th September 2009, 01:15 PM
  3. How to get the root password for Ubunthu Server
    By enochalbert in forum Ubuntu / Debian
    Replies: 2
    Last Post: 26th August 2008, 10:15 PM
  4. how to change root password
    By sandromax in forum Solaris/OpenSolaris
    Replies: 4
    Last Post: 11th October 2007, 03:43 AM
  5. Change root password MySQL 5
    By chiku in forum Databases servers
    Replies: 1
    Last Post: 16th January 2007, 09:46 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts