disabling accounts after inactivity

Young, Mike Mike.Young at atosorigin.com
Thu Sep 7 20:22:31 UTC 2006


The "lastlog" command might help you here, too.

 -----Original Message-----
From: 	redhat-list-bounces at redhat.com [mailto:redhat-list-bounces at redhat.com]  On Behalf Of Michael Christian
Sent:	Thursday, September 07, 2006 3:20 PM
To:	General Red Hat Linux discussion list
Subject:	Re: disabling accounts after inactivity

You could have an accounting script run via .bashrc, say a counter
script gets reset everytime the user logs in.  Or, more simply, have
.bashrc  call a script which looks of the time and date, compares it to the
last entry, and if the requisite time has passed kicks them out - if not,
updates the date to the current provided.

This is about as simple a solution as I can think of...


On 9/7/06, Bill Tangren <bjt at aa.usno.navy.mil> wrote:
>
> Is is possible to disable a user account after a period of inactivity
> (they have
> not logged in during that time), say 30 days? If so, how could one go
> about
> doing that?
>
> Thanks!
>
> Bill
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



-- 
Michael S. Christian Jr.
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list





More information about the redhat-list mailing list