From owner-freebsd-questions@FreeBSD.ORG Sun Dec 22 05:36:38 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 864D02B2 for ; Sun, 22 Dec 2013 05:36:38 +0000 (UTC) Received: from nm29-vm1.bullet.mail.bf1.yahoo.com (nm29-vm1.bullet.mail.bf1.yahoo.com [98.139.213.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 262DE110F for ; Sun, 22 Dec 2013 05:36:37 +0000 (UTC) Received: from [98.139.212.150] by nm29.bullet.mail.bf1.yahoo.com with NNFMP; 22 Dec 2013 05:36:31 -0000 Received: from [98.139.212.237] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 22 Dec 2013 05:36:31 -0000 Received: from [127.0.0.1] by omp1046.mail.bf1.yahoo.com with NNFMP; 22 Dec 2013 05:36:31 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 405248.20586.bm@omp1046.mail.bf1.yahoo.com Received: (qmail 96455 invoked by uid 60001); 22 Dec 2013 05:36:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1387690591; bh=r0yryGlB3CUmu6AYidwSB5Thyy2k9HVwsEES3WM9btw=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=QxeV23GEobGxX2OqHUuZkgMMFia3Nl+dl9VEw72UZvVD+veMqvdV7XYveaMklrhRUwUZ6lwZ4ss7M5mHAuvQXAFsQHTFiYsCu2MzXfUbH/XnkOFYQPOfMg7bEkiTST3vyf4D0HCbjG/NJl6dh75pRloVwwpCQOv3vu6iGGJ9HeE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=qWxqjBuNa/RBjcHzbP3AvzBI9o1YL1qZkOSdCNIG2aSstaAJ9JoR2sRNAj7/YQWNV9W6YE74RoQGhKs904Upe5uDvCAnW2DRrjyuAKOAzfwDtVo1GYjQgyp1FsH9IY98Xz9Lt/ZhIExrpBigUPBO/j0xiRjE+AHifqFkwAC7Z+0=; X-YMail-OSG: mqirdB8VM1mzABFX_3nYfUFf5sdRaKIvMl1ALSiTf0rxw1s 9.hm.7IwPORmGL87s2By17BE.vAH0CGE1eaQNHpuKM1rrz4vwOrS05H6rUDy RdVY2pYTPIeSX.JzyDMbdqIAzfVUzS3OCKYEgsXtgdhMARVBBpUmxG1WuTKP DJv3m4yzqic30mKrxUlbKfk7XmZth_.U8uRr.9m_p5WM0_hvvAlOETVj3liT BK6kChtlcqCjXDad09khiEfD0.deCxYiBRxjLMNM38WbhMOsHxWHQUv9vqw4 IJcRz6sHIT7Sp2fTgiMWPOCjRpcmxdpa1pANWmkDSKIbhhETb1aKhxSAlBqV bL7SQR30yhZQwsphueT4z5EnvLbA1eTAZqgEdasVhBbLEh_spVoGuAMr4jny nfuRUG82DiD3LnU8wnvuryvePouv6YF4206mTs4EvWvdK4uA3iSszQAjUIFA uRXCHDlw0jEBVngbG0gdaQWkfCaB5FKpBsqm.Ln3p6z5qeNagPYwsTY9a2vm ufs8UZvWQzWXpW8tLSqjxNRvXvYEWXMYgt36g4hW53J6keK3UXt2p2tIYkm1 ZjYAVgv4nMOvhcjA9Xs.iSR_wVz4V5Q-- Received: from [89.165.120.140] by web165002.mail.bf1.yahoo.com via HTTP; Sat, 21 Dec 2013 21:36:31 PST X-Rocket-MIMEInfo: 002.001, aGVsbG8sCgpJJ20gdXNpbmcgRnJlZUJTRC04LjIuIEkgaGF2ZSBhIHByb2dyYW0gd2hpY2ggc2VuZHMgIk1ENSAKb2YgdGhlIG5ldyBwYXNzd29yZCIgb2YgYSB1c2VyIHRvIG1lLCBhbmQgSSB3YW50IHRvIHJlc2V0IHVzZXIncyBwYXNzd29yZCB3aXRoIGl0LiBJIHJlYWxpemVkIEkgY2FuIHVzZSAiY2hwYXNzIiB0byBzZXQgZW5jcnlwdGVkIApwYXNzd29yZCBmb3IgYSB1c2VyLCBidXQgaXQgbmVlZHMgc2FsdCBhbmQgSSBjb3VsZG4ndCBtYWtlIGl0IHdvcmsgCndpdGhvdXQgaXQuIHNvIEkgd2FudGVkIHQBMAEBAQE- X-Mailer: YahooMailWebService/0.8.172.614 Message-ID: <1387690591.75236.YahooMailNeo@web165002.mail.bf1.yahoo.com> Date: Sat, 21 Dec 2013 21:36:31 -0800 (PST) From: "M. V." Subject: setting encrypted password for a user To: "freebsd-questions@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: "M. V." List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Dec 2013 05:36:38 -0000 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? - If answer is no, does anyone know how "salt" is being used in FreeBSD crypt for encryption? is it a simple concatenation,etc or it's more complex than that? thank you.