From owner-freebsd-questions@FreeBSD.ORG Wed Apr 9 09:50:31 2014 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 0E128C89 for ; Wed, 9 Apr 2014 09:50:31 +0000 (UTC) Received: from bs1.fjl.org.uk (bs1.fjl.org.uk [84.45.41.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bs1.fjl.org.uk", Issuer "bs1.fjl.org.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BCC01D4C for ; Wed, 9 Apr 2014 09:50:30 +0000 (UTC) Received: from [192.168.1.35] (host86-150-243-51.range86-150.btcentralplus.com [86.150.243.51]) (authenticated bits=0) by bs1.fjl.org.uk (8.14.4/8.14.4) with ESMTP id s399oR1A076130 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Wed, 9 Apr 2014 10:50:27 +0100 (BST) (envelope-from frank2@fjl.co.uk) Message-ID: <534517E7.7000206@fjl.co.uk> Date: Wed, 09 Apr 2014 10:50:31 +0100 From: Frank Leonhardt User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: Can't change user password References: <5342A529.60600@inti.gob.ar> <20140407155639.f77d925e.freebsd@edvax.de> <5342C9BC.7020808@inti.gob.ar> In-Reply-To: <5342C9BC.7020808@inti.gob.ar> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Wed, 09 Apr 2014 09:50:31 -0000 On 07/04/2014 16:52, Juan Bernhard wrote: > El 07/04/2014 10:56 a.m., Polytropon escribió: >>> Hello list, I have a really strange problem. I can't chage a user >>>> password, I tryed from the user itself, from root, in sigle user mode... >>>> I also try to change the hsash in /etc/master.passwd. The passwd command >>>> exit successfully, but nothing happens, the old password is not changed. >>>> The only solution I found is to delete the user and create him again... >> You should be able to force a password change with "passwd " >> as root, and run "pwd_mkdb /etc/master.passwd" to generate the >> binary files. Those need to be "in sync" with the plaintext >> files. See "man pwd_mkdb" and "man passwd" for details. > Thanks a lot Polytropon! That worked for me... I was getting paranoid on > this thing. > It's probably worth remembering the "vipw" utility, which is the safest way to edit passwd file directly, like we used to in the old days when it was a single plain text file. It sets and removes the appropriate locks and rebuilds the hidden version after doing some sanity checks on your edits. Regards, Frank.