bypass the password on Linux CentOS
Posted 31 March 2006 - 05:26 AM
passwd <yourusername> (example: passwd bob)
It will prompt for the new password, then do it again.
After this reboot the system in normal mode.
Posted 04 November 2007 - 07:02 AM
Also, the ERD disk is no longer easily available, as Microsoft aquired Winternals, the developer of this utility. All links default to Microsoft's web page.
Posted 04 February 2010 - 02:27 PM
Well, there is yet another way in which we can get root. In the first method, we typed ‘linuxconf’ in the bash shell prompt, however, we could type the following to create a new account with root privileges and without any password:
echo “ankit::0:0:::” >> /etc/passwd
This command will basically edit the /etc/passwd file which is the password file which stores the Passwords and Usernames of all accounts on the machine. One thing to remember here is that you can edit the /etc/passwd file only if you are logged in as root, however, in this case we are not logged in as root, but we have booted into linux single which gives us the root shell. Hence, we can still edit it.
Anyway, to understand how exactly the above command works and how it is able to create a new account without a password, we need to learn the /etc/passwd file is structured.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users