From owner-freebsd-questions Sat Mar 9 12:48:23 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA22376 for questions-outgoing; Sat, 9 Mar 1996 12:48:23 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA22370 Sat, 9 Mar 1996 12:48:22 -0800 (PST) From: Mike Pritchard Message-Id: <199603092048.MAA22370@freefall.freebsd.org> Subject: Re: Expiry Date entry ? To: tony@hornet.netac.co.za (Tony Harverson) Date: Sat, 9 Mar 1996 12:48:22 -0800 (PST) Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <199603080846.KAA05071@hornet.netac.co.za> from "Tony Harverson" at Mar 8, 96 10:46:22 am X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-questions@FreeBSD.ORG X-Loop: owner-questions@FreeBSD.ORG Precedence: bulk Tony Harverson wrote: > > Heya All, > > I was just wondering what process an expiry date goes thru before its > recorded in the master.passwd file. I want to generate the dates for > the master.passwd in a script, but a look at the master.passwd doesn't > make them seem very interpretable. Exactly how is that field > formatted ? It is stored as seconds since the epoc (e.g. a value of type time_t). chpass uses the mktime() function to generate the value, so you might want to look at how chpass generates the value just to be sure you are consistent. -Mike