Link to home
Start Free TrialLog in
Avatar of RFLafferty
RFLafferty

asked on

Linux server

How do I reset the root password in Linux
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

as root run passwd command
Avatar of RFLafferty
RFLafferty

ASKER

logged in as an account that was created for user
you mean you lost your root password?

which linux platform you run?
ASKER CERTIFIED SOLUTION
Avatar of Papertrip
Papertrip
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Thank you so much, Ill try it & let u know
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
sudo passwd root
@omarfarid that link has exactly what I already wrote...
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.