I think you are looking for usermgmt.conf, or useradd -D -e `date`

⁣Sent from BlueMail ​

On Jun 9, 2017, 11:22 AM, at 11:22 AM, Darren Marshall <dar...@tuff.org.uk> 
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

Reply via email to