password problem

I am an absolute newbie but somehow I managed to install mandrake 10. 1 I've locked the screen and I've forgotten my password. What can I do ?.

Linux Security 40 This topic was started by ,



data/avatar/default/avatar33.webp

1 Posts
Location -
Joined 2005-06-06
I am an absolute newbie but somehow I managed to install mandrake 10.1 I've locked the screen and I've forgotten my password. What can I do ?
 

Participate on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic



data/avatar/default/avatar04.webp

1678 Posts
Location -
Joined 2003-09-27
Reboot, this time sign in as root and give the root password when it asks. Once signed in as root, run kusers and change or fix your password for regular user there.


data/avatar/default/avatar05.webp

500 Posts
Location -
Joined 2004-04-06
Do you have your root password?


data/avatar/default/avatar11.webp

11 Posts
Location -
Joined 2005-08-10
1. boot into single user mode
2. mount the drive in rw mode
3. at the command prompt type
root@localhost$ passwd root
 
- enter a new password
- ilovefatboys
 


data/avatar/default/avatar11.webp

11 Posts
Location -
Joined 2005-08-10
[ continuing on - ignore the ilovefatboys i have sum gay ppl in my computer class]
 
- restart
root@localhost$ init 6
 


data/avatar/default/avatar19.webp

6 Posts
Location -
Joined 2005-08-16
Hahahaha your gay and you cant constain yourself!!


data/avatar/default/avatar04.webp

19 Posts
Location -
Joined 2010-02-04
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.