LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to remove password (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-remove-password-428857/)

rayan 03-27-2006 12:30 AM

how to remove password
 
hi to all, im rayan mayo from philippines im using mandrakes 10.1 and i want to change my password. the problem is i lost my notes where my password is written. how can i remove my password without reformating my box. thanks and good blessed hope u can help me

btmiller 03-27-2006 12:36 AM

Is this your user password or root password? If you still have access to the root account, you can change any user's password as root without being prompted for the original password. Otherwise you'll need to boot into single user mode. Assuming your boot loader is GRUB, hit "e" at the bootloader screen to edit the kernel command line and append the word "signle" (no quotes) and continue booting. If you get asked for a password, i.e. single user mode is protected, you may need to use init=/bin/sh instead of single to launch a shell directly or boot off of rescue media, mount the root filesystem, and edit the /etc/shadow file directly.

This problem has been discussed several times here, so you might want to check the forum search and Google if you need more help with these (admittedly skeletal) instructions.


All times are GMT -5. The time now is 02:51 PM.