Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-05-2017, 08:17 PM   #1
LQ Newbie
Registered: Nov 2017
Posts: 1

Rep: Reputation: Disabled
break root password

Need to know how we reset the root password in ubuntu server os, which installed in a Vmware workstation.
Old 11-05-2017, 11:37 PM   #2
Senior Member
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Boot it into single user mode and then change the password.
Old 11-06-2017, 12:36 AM   #3
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,963

Rep: Reputation: 5719Reputation: 5719Reputation: 5719Reputation: 5719Reputation: 5719Reputation: 5719Reputation: 5719Reputation: 5719Reputation: 5719Reputation: 5719Reputation: 5719
you may check the "similar threads", just scroll down
1 members found this post helpful.
Old 11-06-2017, 01:32 AM   #4
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 768

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Welcome to LQ, but web-search is the #1 'soft skill". DDGoo: rw init=/bin/sh
Old 11-06-2017, 02:37 AM   #5
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
You boot from the Ubuntu installer, open a chroot shell into the root directory, and run
$ passwd root
It's fairly automatic. Just choose 'rescue' from the installer boot menu.
Old 11-06-2017, 03:17 AM   #6
Senior Member
Registered: Apr 2010
Posts: 1,890

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
It's quite easy to break a root password, this link below will surely help if you want to break it.

Good luck.

Welcome to LQ!!!

Last edited by JJJCR; 11-06-2017 at 03:19 AM. Reason: edit
Old 11-06-2017, 03:26 AM   #7
LQ Newbie
Registered: Oct 2017
Distribution: CentOS 7.4
Posts: 8

Rep: Reputation: Disabled
ishr I think this link below will help you:

I didn't use ubuntu for a long time, but reading comments from link above I would say it could solve your problem.

BTW, use JJJCR's solution as the last resort .

Last edited by liman; 11-06-2017 at 03:32 AM.
Old 11-06-2017, 04:43 AM   #8
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Ubuntu doesn't technically have a root password. It's meant to be used with sudo from a primary user.

$ id 1000

You can still break it though. But you have to delete the root password, at which point you can set the root password. And your drawers are down in the middle of script jr high at recess.
Old 11-06-2017, 08:00 AM   #9
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,334
Blog Entries: 4

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
It's worth pointing out, as others have just said, that most distros do not have a separate password for the "root" account.

Instead, they put the first-user into the wheel group, with the "sudoers" file set-up in such a way that this user can simply sudo su, entering his own(!) password, and become "root."

(In a similar feat of short-sightedness, other types of operating systems often create "ordinary users" as "Administrators," thus also able to take full-control of the system using their own passwords.)

(Is it any wonder, then, why "rogue software from somewhere off the street" is able to do so damned much damage? Because the target user, himself, can!)

You should always practice the "Principle of Least Privilege," which stipulates that every user should have only the access rights that this user actually needs to perform its appointed function – and, more generally, should have "its own 'private things'" protected from eavesdropping (by other users), and similarly should be prevented from eavesdropping on others. A digital computer is very good at saying "No," but terrible at saying "Yes."

Last edited by sundialsvcs; 11-06-2017 at 08:01 AM.


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
How to break root's password? Hi_This_is_Dev Linux - Newbie 5 05-18-2009 02:37 PM
how to break the root password in Suse 10.1 olva SUSE / openSUSE 1 02-22-2009 11:26 AM
How to know when someone tried to break root password? mayank_a Linux - General 3 10-10-2005 08:51 PM
Root password: do certain characters "break" Linux? Sumleilmus Linux - Newbie 3 12-28-2004 11:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:41 PM.

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