Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lost Username/password
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
KOLDY
n00b
n00b


Joined: 12 May 2004
Posts: 12
Location: Mass,USA

PostPosted: Tue Jul 13, 2004 7:47 pm    Post subject: Lost Username/password Reply with quote

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
View user's profile Send private message
bonki
n00b
n00b


Joined: 07 May 2004
Posts: 70
Location: Austria/Sweden

PostPosted: Tue Jul 13, 2004 7:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
kiezpro
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2004
Posts: 126
Location: Yes

PostPosted: Tue Jul 13, 2004 7:58 pm    Post subject: Reply with quote

That's easy - If you can login as root, just view your password file using
Code:
cat /etc/passwd

and you'll find your username in one of the last lines. Then change this user's password using
Code:
passwd <your user>

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:
Code:
cat /etc/passwd

You'll see your username there. You can now easily change your password with
Code:
passwd <your user>

You'll also want to change root's password using
Code:
passwd
That should be it.
Back to top
View user's profile Send private message
KOLDY
n00b
n00b


Joined: 12 May 2004
Posts: 12
Location: Mass,USA

PostPosted: Tue Jul 13, 2004 8:01 pm    Post subject: Reply with quote

Thank you guys Very much....i happened to log into my gentoo....i appreciate your help...
Back to top
View user's profile Send private message
Fudor
n00b
n00b


Joined: 29 Jun 2004
Posts: 33
Location: Montreal, Ca

PostPosted: Wed Aug 04, 2004 6:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Unne
l33t
l33t


Joined: 21 Jul 2003
Posts: 616

PostPosted: Wed Aug 04, 2004 6:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
mhodak
Veteran
Veteran


Joined: 15 Nov 2003
Posts: 1218

PostPosted: Thu Aug 05, 2004 4:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum