pw
rank1seeker at gmail.com
rank1seeker at gmail.com
Tue Jun 4 05:31:17 UTC 2013
> I guess I could have been more clear about this as well...
>
> Files you need ( pre-prepped ):
> /etc/passwd
> /etc/master.passwd
> /etc/pwd.db
>
> - or -
> Use /usr/bin/vi following up with /usr/sbin/pwd_mkdb
>
> - or -
>
> /usr/sbin/vipw
>
> Either which way there is a man page for each and recovering a old system like that with even newer live media is not that hard of a task considering you don't need to do anything with the passwd files at all in order to mount any of the slices and pull whatever it is off from it directly.
>
> PS: the utilities that are there have already been written. You have just wasted several years just not looking for them or using them correctly and would suggest that you write something if these are not satisfyingly straight forward enough for you.
>
> Several years of no answer might just be the answer that was right there before you in the first place.
>
> #AH
>
> --
> Jason Hellenthal
> Inbox: jhellenthal at DataIX.net
Fastest way is to simply drop into a single user mode and just pick a shell.
Now you are THE root. (By default, entering into single user mode, doesn't prompt for password)
mount / RW and # passwd (it exists on 4.x?)
Volila!
Domagoj Smolčić
More information about the freebsd-hackers
mailing list