From owner-freebsd-questions@FreeBSD.ORG Mon Dec 23 00:55:35 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 35C0B645 for ; Mon, 23 Dec 2013 00:55:35 +0000 (UTC) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BF00116F2 for ; Mon, 23 Dec 2013 00:55:34 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id q59so4317613wes.24 for ; Sun, 22 Dec 2013 16:55:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=0kVy5WV/8Vb2z1p+k8uwcKI8aJE/kgzYWFPv5xzk92Q=; b=kvvocLnU194iOpN6L1C/0kfpyCtd0dWhcy/OlRQuuZ1uN4/y7CS2uxzCcV1sorrvwB K8SHj4d/QdKAgk4mfZZKqxNPQ5P4zU0ALcNSiSOktB/6Q3ASGSog8j7HmrGLQ3OmVOvA PbUQBPUwvC66Y8qC31sCoLUr09P6RTGfCcAxdVqpYLx7lXTO1PVV21Fi4xPPM/7oRGbe SlzTjbY5InlliBI+CVBKYomlvf1dZBOdq7P6SMX+OpysiltKe3u5Jlk3IQaEBH4qaGZu vXCYMkiejidjaxULnarlv4WhjBoYiQZQ0TU7oaOHPyfrF/iCwWf3Jzbewv2jqd8gf36d BFmQ== X-Received: by 10.194.93.3 with SMTP id cq3mr16384421wjb.26.1387760133291; Sun, 22 Dec 2013 16:55:33 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk. [87.194.105.247]) by mx.google.com with ESMTPSA id jw4sm8731360wjc.20.2013.12.22.16.55.32 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Sun, 22 Dec 2013 16:55:32 -0800 (PST) Date: Mon, 23 Dec 2013 00:55:30 +0000 From: RW To: freebsd-questions@freebsd.org Subject: Re: setting encrypted password for a user Message-ID: <20131223005530.352d08fb@gumby.homeunix.com> In-Reply-To: <79C9317F-84B9-4F8F-8D5F-4DE0B63ED056@fisglobal.com> References: <1387690591.75236.YahooMailNeo@web165002.mail.bf1.yahoo.com> <79C9317F-84B9-4F8F-8D5F-4DE0B63ED056@fisglobal.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Dec 2013 00:55:35 -0000 On Sun, 22 Dec 2013 05:47:08 +0000 Teske, Devin wrote: > > On Dec 21, 2013, at 9:36 PM, M. V. wrote: > > > hello, > > > > I'm using FreeBSD-8.2. I have a program which sends "MD5 > > of the new password" of a user to me, and I want to reset user's > > password with it. I realized I can use "chpass" to set encrypted > > password for a user, but it needs salt and I couldn't make it work > > without it. so I wanted to know: > > - can I set user's password in FreeBSD if I have only MD5 of the > > password? how? > > > > echo 'MD5-HASH' | pw usermod username -H 0 Presumably that's just a way inserting the salted hash. If you simply have the md5 of a password it shouldn't be possible to create a password entry.