Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Aug 2002 21:57:35 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        Desmond Lee <desmond.lee@shaw.ca>
Cc:        freebsd-newbies@FreeBSD.ORG
Subject:   Re: can no longer log into the machine :(
Message-ID:  <3D4E05BF.5070602@owt.com>
References:  <CMEMLGKEKMLLFOICILNMIEFMCBAA.desmond.lee@shaw.ca>

next in thread | previous in thread | raw e-mail | index | archive | help


Desmond Lee wrote:

> Thanks kent
> 
> Just wondering, i'm assuming that you are referring to the free bsd
> handbook, but i can't seem to find a section 10.14 in the online version:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html. Are
> you looking at a newer more upto date version of the handbook or am i just
> not looking hard enough?


http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#FORGOT-ROOT-PW


> 
> I've tried your instrcutions, but when i run 'passwd root' it says 'passwd:
> unknown user root'. I guess i really messed up some files. Do you have any
> suggestions?


hehehe. Murphy sure touched your shoulder today. Look at

coral# locate master.passwd
/etc/master.passwd
/etc/upgrade/master.passwd
/usr/src/etc/master.passwd

One of them has to exist and you could copy it into /etc. Then run 
vipw and change an unimportant letter that isn't a password.

Kent


> 
> Thanks for everything
> 
> Desmond
> 
> 
> You can always change the password from single user mode. The section
> in the Handbook on you have forgotten your password applies here. The
> section is
> 
> 10.14. I have forgotten the root password! What do I do?
> 
> Do not Panic! Simply restart the system, type boot -s at the Boot:
> prompt (just -s for FreeBSD releases before 3.2) to enter Single User
> mode. At the question about the shell to use, hit ENTER. You will be
> dropped to a # prompt. Enter mount -u / to remount your root
> filesystem read/write, then run mount -a to remount all the
> filesystems. Run passwd root to change the root password then run
> exit(1) to continue booting.
> 
> 
> Then, next time you run mergemaster, don't let it touch your
> master.passwd or group with out thinking about what it will do to you.
> You have already seen that and once is enough :).
> 
> Kent
> 
> 
> 
>>Thanks
>>
>>desmond
>>
>>
>>
>>To Unsubscribe: send mail to majordomo@FreeBSD.org
>>with "unsubscribe freebsd-questions" in the body of the message
>>
>>.
>>
>>
>>
> 
> 
> --
> Kent Stewart
> Richland, WA
> 
> http://users.owt.com/kstewart/index.html
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-newbies" in the body of the message
> 
> 
> .
> 
> 


-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-newbies" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D4E05BF.5070602>