nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

what is the default root password in ubuntu

This is a discussion on what is the default root password in ubuntu within the Ubuntu / Debian forums, part of the Linux Distribution category; So what is the default root password in Ubuntu Linux? I do not remember if it prompted while installing the ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Linux Distribution > Ubuntu / Debian

Linux answers from nixCraft.


Ubuntu / Debian Discussion about Debian or Ubuntu Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2009, 01:44 PM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
OS: Ubuntu
Posts: 79
Thanks: 23
Thanked 4 Times in 3 Posts
Rep Power: 5
chimu is on a distinguished road
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; 07-09-2009 at 11:11 PM.
Reply With Quote
  #2 (permalink)  
Old 07-09-2009, 07:16 PM
jaysunn's Avatar
Powered By Linux
User
 
Join Date: Apr 2009
Location: 41.332032,-73.089775
OS: RHEL - OSX
Posts: 597
Thanks: 61
Thanked 78 Times in 70 Posts
Rep Power: 10
jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold jaysunn is a splendid one to behold
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

Jaysunn
__________________
Have a look at what I have been working on
http://www.shellasaurus.com

Last edited by jaysunn; 07-09-2009 at 07:18 PM.
Reply With Quote
The Following User Says Thank You to jaysunn For This Useful Post:
chimu (07-09-2009)
  #3 (permalink)  
Old 07-09-2009, 07:48 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,683
Thanks: 11
Thanked 241 Times in 181 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

The default password is your own normal account password. Just type the following to become root user:
Code:
sudo -s
If you currently logged in as vivek user, type vivek's password.
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
The Following User Says Thank You to nixcraft For This Useful Post:
chimu (07-09-2009)
  #4 (permalink)  
Old 07-09-2009, 07:51 PM
chimu's Avatar
Contributors
User
 
Join Date: Mar 2005
OS: Ubuntu
Posts: 79
Thanks: 23
Thanked 4 Times in 3 Posts
Rep Power: 5
chimu is on a distinguished road
Default

thx guys...
Reply With Quote
Reply

Tags
ubuntu , ubuntu password , ubuntu root password


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Ubuntu Set Default Runlevel /etc/inittab lacloai Linux software 8 09-25-2009 12:15 PM
Default Broadband ADSL Router password for BSNL Dataone sandeep23 Computer Networking and Internet/broadband 14 05-04-2009 10:40 AM
How to get the root password for Ubunthu Server enochalbert Ubuntu / Debian 2 08-26-2008 09:15 PM
how to change root password sandromax Solaris/OpenSolaris 4 10-11-2007 02:43 AM
Change root password MySQL 5 chiku Databases servers 1 01-16-2007 08:46 PM


All times are GMT +5.5. The time now is 07:06 AM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38