Solved

Linux server

Posted on 2011-09-09
11
210 Views
Last Modified: 2012-06-27
How do I reset the root password in Linux
0
Comment
Question by:RFLafferty
  • 3
  • 3
  • 3
  • +2
11 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 36512828
as root run passwd command
0
 

Author Comment

by:RFLafferty
ID: 36512841
logged in as an account that was created for user
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 36512848
you mean you lost your root password?

which linux platform you run?
0
 
LVL 21

Accepted Solution

by:
Papertrip earned 500 total points
ID: 36512858
This all assumes you are able to physically reboot the server:

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


After booting you will get a prompt without needing a password.  Type 'passwd' and it will change the root password, then just hit ctrl-d and the system will continue booting.
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36512870
Apologies I left out the 2nd line -- if you can reboot the server, do that, then you will see the grub boot loader menu.

This also assumes you are actually using the grub loader.
0
Scale it in WD Gold

With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

 

Author Comment

by:RFLafferty
ID: 36512873
Thank you so much, Ill try it & let u know
0
 

Author Comment

by:RFLafferty
ID: 36512938
Linux version 2.6.31-23-server (buildd@allspice) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9) ) #74-Ubuntu SMP Mon Feb 28 22:32:34 UTC 2011
0
 
LVL 8

Expert Comment

by:pilson66
ID: 36513066
sudo passwd root
0
 
LVL 40

Expert Comment

by:omarfarid
ID: 36513073
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36513093
@omarfarid that link has exactly what I already wrote...
0
 
LVL 2

Expert Comment

by:cyclechip
ID: 36515965
simple answer:
press escape during the boot process to enter grub menu
cursor down to 'single user mode'
at the # prompt, type passwd and hit enter:
# passwd
follow the prompts to set a new root password.
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

912 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