On Sep 15, 2010, at 9:51 PM, lina.zhao wrote:
> Hi,
>
> Some board do not have a RTC, then when it boot up, the time is 1970.1.1.
>
> if Linux finds 'last password change date' of an account = 1/1/1970 , it
> forces password change on next login.
> if the systems' date is like that and you change (as required) the password,
> each time you login on the same day it will require you to change password.
>
> So in the target whose boot up time is 1/1/1970 and use the 'su' command,
> there will be 'You are required to change your password immediately (root
> enforced)' informations and stop the testing.
>
> chage -d 10 userName will let the userName is usable in the next 10 days.
Again, this is more of an environment issue with your board than
anything else, and can be easily resolved by calling ntpdate on the board,
so... I still don't see the usefulness of this functionality if it's just
applied in one set of scripts (again, half-measures are very undesirable
because they're more painful to maintain).
It can be solved via an init.d script or an upstart job file in a
matter of a few lines.
Thanks,
-Garrett
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list