From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> When adding a user to a system, I am required by a client's
> security policies to set a one time password that must be
> changed by the user the first time she logs in. Is there a
> simple way to do this?
>
> 1) Obviously, a slightly complex way would be to add the
> user, and then insert the present day and time into the
> change field in his entry in master.passwd (with appropriate
> setting of password-dead, etc. in login.conf). Is there a
> program that will give the present date and time as seconds
> since the Epoch?
date(1), strftime(3);
%s is replaced by the number of seconds since the Epoch, UTC (see
mktime(3)).
$ date +%s
1160003384
DS