Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 1998 10:32:45 -0800 (PST)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Paul Dekkers <P.Dekkers@gromit.eu.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Remove expired accounts
Message-ID:  <Pine.BSF.3.96.980311103105.15787J-100000@gdi.uoregon.edu>
In-Reply-To: <Pine.LNX.3.96.980310190847.121D-100000@gromit.nev.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 10 Mar 1998, Paul Dekkers wrote:

> Is there a way to automagically remove users after their account has been
> expired?! (E.g. with a cron job?!)

You could combine rmuser with your expiration utility.

> (Maybe it's possible to check if the current date is more than the date in
> the password file, and than with awk, grep and cut decide which users
> should be removed, but what's the format of the expire date?!)

The expire date is UNIX-style date -- seconds since epoch.  See passwd(5).

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980311103105.15787J-100000>