Edgar ,
Thanks for the advice , unfortunately , usermgmnt.conf doesn't allow you to
set a password to expire in 60 days , you would have to work out (or write
a script to update the file each day) , the date in 60 days time -
*expire* Sets the default time at which the new accounts expire.
Both
the expire and inactive fields should be entered in the form
``month day year'', where month is the month name (the first
three characters are sufficient), day is the day of the
month,
and year is the year. Time in seconds since the Epoch (UTC)
is also valid. A value of 0 can be used to disable this
feature.
Cheers daz
On 9 June 2017 at 17:36, Edgar Pettijohn <[email protected]> wrote:
> I think you are looking for usermgmt.conf, or useradd -D -e `date`
>
> Sent from BlueMail <http://www.bluemail.me/r?b=9796>
> On Jun 9, 2017, at 11:22 AM, Darren Marshall <[email protected]> wrote:
>>
>> Hi guys,
>>
>> I'm trying to create a policy whereby a user added to an OpenBSD 6.0 system
>> automatically gets their password expiry set to 60 days.
>>
>> I did think that this could be accomplished by adding upwexpire="60d" to
>> /etc/adduser.conf but subsequent adding of a test user using adduser
>> doesn't inherit this setting , field 6 of their passwd entry is set to 0.
>>
>> Anyone got any idea how to achieve this?
>>
>> Many thanks daz
>>
>>