From owner-freebsd-questions Sun Mar 3 21:18:23 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pianosa.catch22.org (pianosa.catch22.org [64.81.48.19]) by hub.freebsd.org (Postfix) with ESMTP id 6056437B400 for ; Sun, 3 Mar 2002 21:18:19 -0800 (PST) Received: by pianosa.catch22.org (Postfix, from userid 1006) id 1093245C; Sun, 3 Mar 2002 21:18:19 -0800 (PST) Date: Sun, 3 Mar 2002 21:18:18 -0800 From: Danny Howard To: Matiss Elsbergs Cc: freebsd-questions@freebsd.org Subject: Re: Passwords question Message-ID: <20020303211818.L3896@pianosa.catch22.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from matiss@bkc.lv on Thu, Feb 28, 2002 at 01:04:54PM +0200 X-Loop: djhoward@uiuc.edu Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 28, 2002 at 01:04:54PM +0200, Matiss Elsbergs wrote: > Is there a way to decrypt user passwords stored in /etc/master.passwd for > viewing them in plain text? No. One-way hash. > If there is no such possibility, and I think there isn't, is it possible to > copy/paste this password in mySQL for authentication? How? If I recall correctly, there's a table in mysql where user passwords are stored. If MySQL can use the same hash that you have in /etc/master.passwd, then yes, you write a script that parses master.passwd and feeds SQL queries to MySQL. :) Such a beast may already exist, have you asked Google? -danny -- http://dannyman.toldme.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message