From owner-freebsd-stable Thu May 23 15:37:56 2002 Delivered-To: freebsd-stable@freebsd.org Received: from moutvdom00.kundenserver.de (moutvdom00.kundenserver.de [195.20.224.149]) by hub.freebsd.org (Postfix) with ESMTP id DD01437B409; Thu, 23 May 2002 15:37:49 -0700 (PDT) Received: from [195.20.224.219] (helo=mrvdom03.kundenserver.de) by moutvdom00.kundenserver.de with esmtp (Exim 2.12 #3) id 17B1Bt-0003oe-00; Fri, 24 May 2002 00:36:13 +0200 Received: from p508174c7.dip.t-dialin.net ([80.129.116.199] helo=golulu.logelhorst.de) by mrvdom03.kundenserver.de with esmtp (Exim 2.12 #3) id 17B1Bs-0007Gj-00; Fri, 24 May 2002 00:36:13 +0200 Message-ID: <3CED6EBF.7080506@golulu.logelhorst.de> Date: Fri, 24 May 2002 00:35:43 +0200 From: "Klaus-J. Wolf" Organization: Morning County Sheepshooters' Association User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.0rc2) Gecko/20020513 X-Accept-Language: en, en-us, de MIME-Version: 1.0 To: Jeffrey Tang Cc: freebsd-questions@freebsd.org, stable@freebsd.org Subject: Re: How to force one user to change his password? References: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jeffrey Tang wrote: >Thank you both for your workarounds, but I suppose this is some kind of >*bug* . According to passwd(5), "The change field is the number in seconds, >GMT, from the epoch, until the password for the account *must be* changed." >I am asking him to change his password, not merely suggesting. Shouldn't >the login process reexamine change field after passwd(1) returns? > > > Hm, I don't say any hints about *password history*. So, it is perfectly legal to press Enter and leave the password unchanged at the prompt, like it would be if you enter the old password again. passwd(1) returns 0 even if you didn't change anything... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message