Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Whats up? I just aquared (sp?) an older computer with RH 7.3 installed. I can not login, because I do not know the root password. What can I do?
p.s.
to dave_ross,
Thank You for puting that warning at the end of your signature, but, I wanted to see what does (old computer with 2.5 Gig hd), funny as hell, but, when/why would someone use that comand?
You'll need to boot into single user mode or straight to a shell to change the password. This has been convered many times before, a quick search will most likely find detailed directions if you need them. Regards.
Hello!
I'd boot from the rescue disk, mount your partition, and edit your /etc/passwd file... Delete the password entry for the root user so it looks like this:
root:[password used to be here]:[more junk here...]
Then, reboot, and login as root...you shouldn't be prompted for the password. Then, run the passwd command to set a new root password, otherwise, your computer will be without a root password...very, very, bad...
You could of course just do a clean reinstall...
--Taj
Whats up? I just aquared (sp?) an older computer with RH 7.3 installed. I can not login, because I do not know the root password. What can I do?
p.s.
to dave_ross,
Thank You for puting that warning at the end of your signature, but, I wanted to see what does (old computer with 2.5 Gig hd), funny as hell, but, when/why would someone use that comand?
You only do it if you want to remove all files on your compurer that you have write access too. The meaning being, if everything goes bottoms up you can just reinstall and start where you left off (always make sur eyou have backups though) That is tgreat thing about computers!
Follow these steps to reset your root password:
1) Reboot your computer.
2) When the grub bootloader appears on the screen select the entry for your linux system - it may be the only one.
3) Press the "e" key to edit the entry.
4) Select the line beggining with "kernel".
5) Press the "e" key again
6) Type " single" no quotes
7) Press enter
8) Press "b" to boot
9) When the prompt appears type "passwd" press enter
10) Enter a new password when prompted
11) Reboot by typing "shutdown -r now"
Only if they have physical access to your computer. That is why it is safer to include a bios password and bootloader password too. Even this will not prevent someone physically removing the drive and mounting it in another system.
Hi this is NIKITA and I am having similar problems. I tried the steps from posting #6... and it when I was GRUB pressed "e" but it gives me no choices. I the only iption I think I get is "i" them enter a password which I don't know. What do you say?
You will need to enter your grub password. IF that doesn;t work then boot with your rescue CD (CD1) then delete the root password from /mnt/sysimage/etc/shadow
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.