LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   what to do if you forget a passward (https://www.linuxquestions.org/questions/linux-newbie-8/what-to-do-if-you-forget-a-passward-643537/)

Bethelhem1 05-20-2008 11:01 AM

what to do if you forget a passward
 
hi
> I have a question regarding pasword .
> I have a computer that has the ubuntu on it. and I forgot my
passoward so xan you pleases help me with the recovery of the passward pleae

rocket357 05-20-2008 11:08 AM

Quote:

Originally Posted by Bethelhem1 (Post 3159265)
hi
> I have a question regarding pasword .
> I have a computer that has the ubuntu on it. and I forgot my
passoward so xan you pleases help me with the recovery of the passward pleae

Did you forget the "root" password, or just the user password?

If you can login as root, you can run "passwd <username>" to reset a user's password.

If you forgot the root password, you can boot the machine into single user mode and reset the root password from there.

fbianconi 05-20-2008 06:46 PM

ubuntu has no root password, by default the account is disabled.
you can try this (not sure if it works, but might/should/could)
1. boot ubuntu livecd
2. mount /dev/sda1 /mnt
3. chroot /mnt/disk
4. passwd yourusername
sudo on livecd has no password

eggixyz 05-20-2008 08:21 PM

Hey There,

The initial setup for my box would let me do:

Quote:

sudo passwd root
just enter your own user password after that.

Best wishes,

Mike


All times are GMT -5. The time now is 08:50 AM.