From owner-freebsd-questions@FreeBSD.ORG Thu Dec 7 14:30:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B7D0516A4A7 for ; Thu, 7 Dec 2006 14:30:00 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from diri.bris.ac.uk (diri.bris.ac.uk [137.222.10.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 617D943CAE for ; Thu, 7 Dec 2006 14:29:06 +0000 (GMT) (envelope-from mexas@bristol.ac.uk) Received: from seis.bris.ac.uk ([137.222.10.93]) by diri.bris.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GsKG0-0000eo-Jj for freebsd-questions@freebsd.org; Thu, 07 Dec 2006 14:29:57 +0000 Received: from mech-aslap33.men.bris.ac.uk ([137.222.184.33]) by seis.bris.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1GsKCj-0001XA-DG for freebsd-questions@freebsd.org; Thu, 07 Dec 2006 14:26:29 +0000 Received: from mech-aslap33.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-aslap33.men.bris.ac.uk (8.13.8/8.13.4) with ESMTP id kB7EOet8020940 for ; Thu, 7 Dec 2006 14:24:40 GMT (envelope-from mexas@bristol.ac.uk) Received: (from shterenl@localhost) by mech-aslap33.men.bris.ac.uk (8.13.8/8.13.4/Submit) id kB7EOeR5020939 for freebsd-questions@freebsd.org; Thu, 7 Dec 2006 14:24:40 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-aslap33.men.bris.ac.uk: shterenl set sender to mexas@bristol.ac.uk using -f Date: Thu, 7 Dec 2006 14:24:39 +0000 From: Anton Shterenlikht To: freebsd-questions@freebsd.org Message-ID: <20061207142439.GA20896@mech-aslap33.men.bris.ac.uk> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Spam-Score: -1.3 X-Spam-Level: - Subject: periodic passwd change? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2006 14:30:00 -0000 I can't see how to prescribe periodic passwd change, only how to set expiry time. At the moment I put the following line in the root's crontab: 2 2 2 * * pw usermod shterenl -p "`date '+\%d-\%m-\%Y'`" This makes a user's passwd expire once a month. Is there a better way to force users change their passwds periodically? thanks anton