Solved

Ubuntu - reset root password

Posted on 2010-11-11
7
980 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
linux backup strategies/tools 5 56
Linux : how to point the OS to use the new DNS server 11 102
Linux :how to provide sudo access to the user 13 96
Truecrypt and swap 6 127
After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

776 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