[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Linux server

Posted on 2011-09-09
11
Medium Priority
?
217 Views
Last Modified: 2012-06-27
How do I reset the root password in Linux
0
Comment
Question by:RFLafferty
[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
  • 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 21

Accepted Solution

by:
Papertrip earned 2000 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
 

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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

650 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