From owner-freebsd-questions Wed Mar 11 10:33:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA27645 for freebsd-questions-outgoing; Wed, 11 Mar 1998 10:33:13 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA27587 for ; Wed, 11 Mar 1998 10:33:07 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.7/8.8.8) with SMTP id KAA15893; Wed, 11 Mar 1998 10:32:45 -0800 (PST) (envelope-from dwhite@gdi.uoregon.edu) Date: Wed, 11 Mar 1998 10:32:45 -0800 (PST) From: Doug White Reply-To: Doug White To: Paul Dekkers cc: freebsd-questions@FreeBSD.ORG Subject: Re: Remove expired accounts In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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