tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Darryl Cook <dlc@cs.appstate.edu>
Subject: Summary:  edauth values & login problems.
Date: Thu, 30 Jan 2003 15:50:19 -0500	[thread overview]
Message-ID: <3E39900B.1050300@cs.appstate.edu> (raw)
In-Reply-To: 3E300534.7090109@cs.appstate.edu

Sorry for the delay in getting the Summary out but wanted to try some 
things first......Thanks to the following for their help....Dr. Blinn, 
 Ann Majeske, Johan Brusche, Paul Sand, Jerome Berkman, Mark Deiss, 
Oisin McGuinness, John Ferlan, Harm Ensing, Tom Swigg.


The easiest method was to set the grace limit as lots of folks suggested 
and I had tried but it didnt work right.  The usermod man page said the 
grace_limit was number of days but my accounts kept getting disabled 
again after about a day or so even though I set the grace_limit to 26. 
 Ann Majeske emailed me and said that the man page was wrong and that it 
was actually the number of hours which makes sense since my accounts 
were disabling after a day or so.  So it seems once I set the limit to 
around 504 they would stay active long enough.  

The answer to what does the time in the edauth output represent is:
The grace limit is stored in the auth database as a time_t value which 
is (number of seconds since the Epoch, Jan 1 00:00:00 GMT 1970).

To convert the t_time number to an exact date you can do the following:

1043333542  =  Thu Jan 23 15:52:22 2003

Use the following to convert the number in human time format:

echo "ctime 1043333542" | kdbx -k /vmunix




Darryl Cook wrote:

> I bought the book Tru64 Unix  Troubleshooting  by Martin Moore and 
> Steven Hancock and must say it is a big help.  I had posted a question 
> here earlier about problems with student accounts getting disabled and 
> with the help of Martin and the book have narrowed it down to the 
> following:   The value of u_suclog is greater than the value for 
> u_max_login_intvl.   The book says to either set u_max_login_intvl to 
> 0 or set u_suclog to a time closer to the present.  It would be best 
> for me to set u_suclog to a time closer to the present but Im not sure 
> what to set it to.  Question is this:  what does the value for 
> u_suclog represent?  I thought at first that it was number of seconds 
> since last successful login but I dont think that is the case.  I just 
> logged in and did an edauth -g on my account and it shows u_suclog to 
> be 1043333542.   What does this represent?
>
> thanks,
> darryl
>




      reply	other threads:[~2003-01-30 20:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-23 15:07 edauth values & login problems Darryl Cook
2003-01-30 20:50 ` Darryl Cook [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox