View previous topic :: View next topic |
Author |
Message |
KOLDY n00b
Joined: 12 May 2004 Posts: 12 Location: Mass,USA
|
Posted: Tue Jul 13, 2004 7:47 pm Post subject: Lost Username/password |
|
|
Hello i know this sounds stupid...But i installed Gentoo on a Hard drive over a month ago and i took the drive out so i could get to my files on my WINDOWS that i had on another drive...so i just recently wanted to use linux again and i forgot my username and password now i can't log into my Gentoo GUI i'm using Kernel 2.4.25
Please help me
Thank you
Brian
P.S wasn't sure where to post this so i just came here Sorry if i'm in the wrong Forum Topic |
|
Back to top |
|
|
bonki n00b
Joined: 07 May 2004 Posts: 70 Location: Austria/Sweden
|
Posted: Tue Jul 13, 2004 7:56 pm Post subject: |
|
|
Boot from the LiveCD, chroot into your installation and change your passwd. _________________ "Security is always a compromise between convenience...and...err...security."
Registered Linux User #355149. |
|
Back to top |
|
|
kiezpro Tux's lil' helper
Joined: 13 May 2004 Posts: 126 Location: Yes
|
Posted: Tue Jul 13, 2004 7:58 pm Post subject: |
|
|
That's easy - If you can login as root, just view your password file using
and you'll find your username in one of the last lines. Then change this user's password using
If you don't know the root password either, boot from the Gentoo CD, pick the partition that's usually mounted under / and mount it under /mnt/gentoo. Do Code: | chroot /mnt/gentoo /bin/bash |
(So far it's all in the manual, too). Now view your passwd file:
You'll see your username there. You can now easily change your password with
You'll also want to change root's password using
That should be it. |
|
Back to top |
|
|
KOLDY n00b
Joined: 12 May 2004 Posts: 12 Location: Mass,USA
|
Posted: Tue Jul 13, 2004 8:01 pm Post subject: |
|
|
Thank you guys Very much....i happened to log into my gentoo....i appreciate your help... |
|
Back to top |
|
|
Fudor n00b
Joined: 29 Jun 2004 Posts: 33 Location: Montreal, Ca
|
Posted: Wed Aug 04, 2004 6:37 pm Post subject: |
|
|
Are you guys saying that as long as I have a gentoo LiveCD I can access anyone's gentoo box as long as I have physical access to it?!
Doesnt sound very safe to me... |
|
Back to top |
|
|
Unne l33t
Joined: 21 Jul 2003 Posts: 616
|
Posted: Wed Aug 04, 2004 6:46 pm Post subject: |
|
|
There aren't many ways to secure a box that you have physical access to. The OS enforces security, in terms of file permissions, right? Bypass the OS and you bypass the security.
You could encrypt your filesystems though, for example. _________________ Obligatory hompage link. |
|
Back to top |
|
|
mhodak Veteran
Joined: 15 Nov 2003 Posts: 1218
|
Posted: Thu Aug 05, 2004 4:04 am Post subject: |
|
|
Fudor wrote: | Are you guys saying that as long as I have a gentoo LiveCD I can access anyone's gentoo box as long as I have physical access to it?!
Doesnt sound very safe to me... |
This way you can access any box (not only gentoo, or linux for that matter) as long as you have physical access to it. You can do things like encrypting data etc, but the thing is that if somebody wants to destroy your data and has access to your box he can just physically break your hard drive or burn the whole box. If you want your box to be trully safe, you need to store it in locked closet etc. See first part of Gentoo Security Guide:
http://www.gentoo.org/doc/en/gentoo-security.xml |
|
Back to top |
|
|
|