Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

expiring accounts after 90 days of inactivity.

Status
Not open for further replies.

exsnafu

Technical User
Apr 25, 2008
99
0
0
US
ok, this should be pretty simple and im sure several others out there have implemented this.

i need to lock accounts that have been unused for 90 days.

my first thought was to simply grab the time_last_login out of lsuser for ALL, do a little math and chuser any offenders.

but several accounts have no time_last_login, what if the account has never been logged into? is there another fun trick to getting this?
 
thanks!

looks like your script does the same thing mine does, i just wanted to know if there was some other fancy way of getting an account creation time for the users who've never logged in... looks like unless i modify the account creation method to give an initial login there is no clever way to get this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top