*BSD News Article 83153


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!ddsw1!news.mcs.net!newspump.sol.net!howland.erols.net!EU.net!main.Germany.EU.net!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet
From: j@ida.interface-business.de (J Wunsch)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Passwd Expire'ing
Date: 18 Nov 1996 16:59:54 GMT
Organization: interface business GmbH, Dresden
Lines: 20
Message-ID: <56q4ma$8db@innocence.interface-business.de>
References: <847976274.19159.0@kevinw.noc.demon.net>
  <56kvl7$7l@xciv.demon.co.uk>
Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch)
NNTP-Posting-Host: ida.interface-business.de
X-Newsreader: knews 0.9.6
X-Phone: +49-351-31809-14
X-Fax: +49-351-3361187
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

paul@xciv.org (Paul Civati) wrote:

> I've no idea what 'from the epoch' means but since most specifications
> of time in seconds are since 01 Jan 1970 00:00:00 I will guess that's
> what it means. :)

Yep.  ``The epoch'' means exactly this.

> Now, how to generate such values for your /etc/passwd, I dunno.  I've
> done it before, I had to write some (not very good) code to do it, gets
> difficult when you have to take the various leap year rules into account.

chpass(1) does this for you, but is a little picky the possible
formats to specify the date.  See also the other postings for caveats
on the password aging functionality itself.

-- 
J"org Wunsch					       Unix support engineer
joerg_wunsch@interface-business.de       http://www.interface-business.de/~j