Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Ubuntu - reset root password

Posted on 2010-11-11
7
Medium Priority
?
1,027 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 8

Accepted Solution

by:
Wilder_Admin earned 2000 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
Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating a Samba server for a small office. Ubuntu Linux and Samba can breathe new life into a retired PC and save an office money on new hardware/software. Our example server will have two hard disks, one exclusively for storing shared data. …
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

670 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