Solved

Linux server

Posted on 2011-09-09
11
209 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
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

 

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

707 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

16 Experts available now in Live!

Get 1:1 Help Now