From owner-freebsd-current@FreeBSD.ORG Tue Aug 5 03:41:46 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78DB137B401; Tue, 5 Aug 2003 03:41:46 -0700 (PDT) Received: from marvin.sko.mh.se (marvin.sko.mh.se [193.10.250.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id E87AA43F85; Tue, 5 Aug 2003 03:41:44 -0700 (PDT) (envelope-from myrslok@sko.mh.se) Received: from marvin.sko.mh.se (localhost.sko.mh.se [127.0.0.1]) by marvin.sko.mh.se (8.12.9/8.12.9) with ESMTP id h75AdHfW055496; Tue, 5 Aug 2003 12:39:17 +0200 (CEST) (envelope-from myrslok@sko.mh.se) Received: from localhost (myrslok@localhost)h75AdHVE055493; Tue, 5 Aug 2003 12:39:17 +0200 (CEST) X-Authentication-Warning: marvin.sko.mh.se: myrslok owned process doing -bs Date: Tue, 5 Aug 2003 12:39:17 +0200 (CEST) From: Mats Larsson To: David Schultz In-Reply-To: <20030804061719.GB873@HAL9000.homeunix.com> Message-ID: <20030805122042.T55344@marvin.sko.mh.se> References: <20030802150826.D35850@marvin.sko.mh.se> <20030804061719.GB873@HAL9000.homeunix.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: warnpassword and warnexpire in 5.1 login.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 10:41:46 -0000 Sure, run cap_mkdb on every edit on login.conf The values im trying to use there are the following: :warnexpire=28d:\ :warnpassword=14d:\ And with pw i use the following to test with: (also with -e option) pw usermod user -p +10d The only thing im getting now is i warning in messages when i try to login into a locked account. Aug 5 12:14:39 marvin sshd[55256]: error: PAM: user accound has expired And the following varning when password is old: Aug 5 12:27:38 marvin sshd[55386]: error: PAM: OK Aug 5 12:27:40 marvin sshd[55390]: fatal: PAM: chauthtok not supprted with privsep Is there perhaps a better PAM way of doing this things now?? // Mats On Sun, 3 Aug 2003, David Schultz wrote: > On Sat, Aug 02, 2003, Mats Larsson wrote: > > > > Hello! > > > > Tried this question to the questions list with no response, perhaps > > current is the correct list for questions related to 5.1-RELEASE?? > > > > I am trying to use warnexpire and warnpassword in login.conf but with no > > result, are the warnexpire and warnpassword still used in 5.1 or have they > > been superseded with a PAM module in the same way as minpasswordlen and > > minpasswordcase?? > > They're part of the pam_unix PAM module now, but they should still > work. I tried them a few months ago, and I don't remember any > special steps being necessary. You ran cap_mkdb(1), right? > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >