Monday, October 23, 2006

Changing root's password


This trick works well if you have forgotten your superuser password, type linux single at a
LILO/Grub prompt. Then passwd once the system has started and you are at a console.

Grub:
If you are using grub go to the relevant line (the one with the kernel and various options) then
press 'e' for edit and add "single" on to the end of the lines that boot the kernel. Then hit
[Enter] and press 'b' (to boot).

Lilo:
If you are using lilo press escape and type " linux single" and then hit [Enter] to boot.

Security Warning
This is also a basic security hazard if you have others using your computer and
security is a concern, you may like to add a password to your LILO or Grub prompt to
stop this from being done.

No comments:

State Machine implementation for Spring Boot Project

Well I do not write a lot about it. You have plenty of resources to read about it. The behavior of state machines can be observed in many d...