Forgot Root Password & User Name !!
Hi Folks :)
Is there any way to recover the Root User name & the password if the end user forget's it :scratch: |
You can change the password: just boot into a recovery mode (via livecd, init=/bin/bash, or grub option for many modern distros) and remount root rw, then use passwd to change the password.
|
this topic has been discussed many times in this forum..just a search will give you the required answer or under his thread you can find similar threads.
|
comment
Pretty well said..!!
Eileen..:) ======================== |
comment
|
Recovering the "Root User Name" is a contradiction in terms, as root is always called root. The original question might have been about recovering one or more existing usernames and their passwords.
Logging in a root in rescue mode allows to read the /etc/passwd file, containing all existing usernames. Passwords are usually stored separately in /etc/shadow and are encrypted, so the easiest way to access the account is by changing the password. |
Quote:
|
You can try
telinit 1 which will put the system into single user mode. It may(!) ask for the root user passwd. If you know that then you're fine, although you don't need single user mode in that case; use su - <root passwd> but if its being awkward, try single user. |
All times are GMT -5. The time now is 11:40 AM. |