*BSD News Article 83099


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!uwm.edu!cs.utexas.edu!howland.erols.net!news.mathworks.com!uunet!in3.uu.net!nntp.inet.fi!news.funet.fi!news.cs.hut.fi!news.clinet.fi!news.jmp.fi!jmarin
From: jmarin@pyy.jmp.fi (Jukka Marin)
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Re: Passwd Expire'ing
Date: 17 Nov 1996 19:39:56 GMT
Organization: JMP-Electronics
Lines: 27
Message-ID: <slrn58uqgc.ko.jmarin@pyy.jmp.fi>
References: <847976274.19159.0@kevinw.noc.demon.net>
NNTP-Posting-Host: pyy.jmp.fi
X-Newsreader: slrn (0.8.8.2 UNIX)

In article <847976274.19159.0@kevinw.noc.demon.net>, Kevin Walton wrote:
>I have put an entry in my password file -> 
>
>kevin:XXXXXXX:500:20:Jan011995:0:0:Kevin Walton:/home/kevin:/bin/csh
>
>And you can see a password expire time of Jan 01, 1995, but when I login
>it doesnt force me to use a new passwd?
>
>I have tried a few differnt formats in the line.

Put time in seconds (as in time(0)) there and it works.  Or use chpass(1)
to set the date.

However, login won't let you change your password once it expires, so you
won't be able to log on at all.  Also, passwd(1) sets the expire time to 0
again, so the password never expires if the user changes it.  I have patched
passwd(1) to set the expire time to now+60 days (a trivial change).

  -jm


-- 

                I'm not lazy - I'm only selectively motivated

                     ---> http://www.jmp.fi/~jmarin/ <---