RFLafferty
asked on
Linux server
How do I reset the root password in Linux
as root run passwd command
ASKER
logged in as an account that was created for user
you mean you lost your root password?
which linux platform you run?
which linux platform you run?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
This also assumes you are actually using the grub loader.
ASKER
Thank you so much, Ill try it & let u know
ASKER
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.
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.