From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 4 05:31:17 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E1EDDAC1 for ; Tue, 4 Jun 2013 05:31:17 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-bk0-x22a.google.com (mail-bk0-x22a.google.com [IPv6:2a00:1450:4008:c01::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 7773A1C24 for ; Tue, 4 Jun 2013 05:31:17 +0000 (UTC) Received: by mail-bk0-f42.google.com with SMTP id jk13so992626bkc.29 for ; Mon, 03 Jun 2013 22:31:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:in-reply-to:references:x-mailer; bh=0mH5POBVnC3jp3RBnVsaOXVInWqtyJtr+S4WOvMfwEI=; b=F9IQXvpntKAXLrPq5v4p3z8UsCNmcl5Mgd0ZFaIFOv5BrAeyOEBgMrllRJEr5YJwc/ 3bPlmM5JIqkUpoc0QoSZzhCxb2NMO0rNP4t6P5t3qVRAfHNrJbjnsiYOYTxYiJJtqnpP N1oqsGLcfF8ybrCyjXtJs0irrVNwCTPCTexOSXG5zS52RJh8X6gyzHjsnFvKuO2uJcAc 15eaWJWRvMSkUBBm5ItLLIHDcgQzVnHEXxqaw7nU6CA49jA53f6UVgohPIUQ5yfivq4H 2vO+L2z5PMa3Jv1q70dUOq2guWPYr+utnVAFimFafq3It4BPsSwOe2Vr33p7LNf7Qi4r yFwg== X-Received: by 10.205.8.67 with SMTP id or3mr7431552bkb.172.1370323876586; Mon, 03 Jun 2013 22:31:16 -0700 (PDT) Received: from DOMYPC ([82.193.208.225]) by mx.google.com with ESMTPSA id so13sm21564800bkb.15.2013.06.03.22.31.15 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 03 Jun 2013 22:31:15 -0700 (PDT) Message-ID: <20130604.053115.126.1@DOMY-PC> From: rank1seeker@gmail.com To: hackers@freebsd.org Subject: Re: pw Date: Tue, 04 Jun 2013 07:31:15 +0200 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20130603.214755.24886.0@webmail02.dca.untd.com> X-Mailer: POP Peeper (3.8.1.0) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jun 2013 05:31:17 -0000 > I guess I could have been more clear about this as well...=0D=0A> =0D=0A> = Files you need ( pre-prepped ):=0D=0A> /etc/passwd=0D=0A> = /etc/master.passwd=0D=0A> /etc/pwd.db=0D=0A> =0D=0A> - or -=0D=0A> Use = /usr/bin/vi following up with /usr/sbin/pwd_mkdb=0D=0A> =0D=0A> - or = -=0D=0A> =0D=0A> /usr/sbin/vipw=0D=0A> =0D=0A> 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.=0D=0A> =0D=0A> 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.=0D=0A> =0D=0A> Several years of no answer might = just be the answer that was right there before you in the first = place.=0D=0A> =0D=0A> #AH=0D=0A> =0D=0A> -- =0D=0A> Jason = Hellenthal=0D=0A> Inbox: = jhellenthal@DataIX.net=0D=0A=0D=0A=0D=0A=0D=0AFastest way is to simply = drop into a single user mode and just pick a shell.=0D=0ANow you are THE = root. (By default, entering into single user mode, doesn't prompt for = password)=0D=0Amount / RW and # passwd (it exists on = 4.x?)=0D=0AVolila!=0D=0A=0D=0ADomagoj Smol=E8i=E6