Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
I need to recover the Administrator passwrod on my Linux Red Hat box. I have found a way to do it (I think): when Linux is booting up, press ctrl-x to get into the command promtp mode. You are then presented with a screen like:
boot>
From here I enter single user mode and when in in single user mode I type in the command: password, and then enter in a new password.
This then allows me to boot up Linux as "root".
However, my query is, do I have full administrator access logged in this way or not because it seems like a very simple way for anyone to crack a UNIX/LINUX box? Surely it can't be this easy.
If in fact this does not give me full administrator privilieges then do you guys know any other ways to do so?
As far as I am aware, this does allow you to change root's password easily, and so could be used to gain unwanted root access... however, in order to get into single mode, you must be at the keyboard when the thing boots up, so it would not be possible to do this from a networked machine. You can password protect your lilo/grub setup so that you need another password to boot into anything except for the default setting, for added security.
grub is more secure bcz it have its own grub loader password other than the roots passowrd first u have to enter the grub password to go into the single user mode
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.