Solved

Ubuntu - reset root password

Posted on 2010-11-11
7
968 Views
Last Modified: 2013-11-15
Hi

I have 'inherited' a linux machine and need to reset the root password. I tried restarting in recovery mode and dropping to a root shell prompt as advised on various websites but then got
Give root password for maintenance shell (or type Control-D to continue):

I don't know where to go from here as I'm a novice really. I have seen this page but don't know how to follow it

http://www.uluga.ubuntuforums.org/showthread.php?t=1433097

I tried starting again in recovery mode and pressing e to edit it but this just gave me an screen with some output on it and th option for a command prompt which just takes you to a  grub command prompt .

I don't know what to do :)
thanks a lot
0
Comment
Question by:andieje
7 Comments
 
LVL 8

Accepted Solution

by:
Wilder_Admin earned 500 total points
ID: 34115074
the only really working is to boot from cd linux distribution like ubuntu or knoppix. Then search the /etc/shadow file and delete all behind root.
then you should reboot and you can enter with root again without password.

If this is not working then boot again from the linux distribution and enter the file /etc/group and give a different user then root the root rights for example the www-data user of apache and log in with.

If this is not working and you dont have local access to machine then you are srewed.
0
 
LVL 3

Expert Comment

by:alpharom
ID: 34115082
if you have a ubuntu cd-rom you can run it from the configuration in a graphical mode
0
 
LVL 6

Expert Comment

by:sagiamar
ID: 34115083
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:andieje
ID: 34115134
i don't have a cd rom.
Here is what i get
linux.jpg
0
 

Author Comment

by:andieje
ID: 34115145
what do you mean by don't have local access?

I am running linux as a virtual machine. It is someone else's VM and I can't get it to load.

I actually get these errors when I try and log on as the user I have the password for:


Could not update ICEauthority file home/mkhweb/.ICEauthority

I click the only option, cancel and then get this error

There is a problem with the configuration server (/usr/lib/libgconf2-4/conf-sanity-check exited with status 256

So i can't log on at all. All the fixes for the above solution require dropping to a root shell and I can't do that!!!
0
 

Author Comment

by:andieje
ID: 34115152
I probably have the original linux iso file if that helps
0
 

Author Closing Comment

by:andieje
ID: 34115425
thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now