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.
Location: The peoples republic of China , Macao S.A.R. Ramal Dos Mouros 14 Ed.Chan Chu Kok 7/e
Distribution: no
Posts: 2
Rep:
Help, I forgot the password of "root"
Help, I forgot the password of "root", but I don't want to install Linux again.Who can tell me that how to get the password login use "guest" or login use "root" with out type the password.
i assume he is using lilo, its more common but hey, that is why people should be detailed so we don't have to ponder about these types of things on the other side.
well, i have never used grub but i am sure you can run the single user runlevel of 1 from the command line to reboot into single user mode, but i am unsure if you can do this without being root to do it. not sure though.
i assume you need a boot disk then since i know grub is like a graphical boot loader and gives no prompt. unless you can try a ctrl-x at the login and see if it goes to a regular command line to load your choice of OS.
i give everyone breaks though.... some aren't as patient, i just see it as common sense to give details in the IT world, well at least to get questions answered faster that is.
If you are using grub then you can use the Installation CD and you will get the LILO prmpt
Login into single user mode by typing LINUX 1
delete the /etc/passwd file
set a new password by typing passwd root
and you're all set
Wait a second, so anyone could just boot into single-user mode and change my root password on me, and do anything they wanted to my system? I'll have to keep that in mind when I leave my laptop laying around. I guess setting a BIOS password would protect against this?
you're right they should have some sort of validation you have to go through before allowing you to change passwords,,,, because at my College someone did this exaclty... change the admin passwords, and did "fun" stuff to it...
let's just say that that person isn't accepted to really any colleges or university's anymore..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.