I am setting up a Mac Mini for use as a server in our office. I am trying to set in place a reasonable security policy. Currently, I am struggling to accomplish the following:
How can I make a user change their password when they sign in for the first time via SSH? I have seen answers involving setting newPasswordRequired=1
using pwpolicy
, but this has been deprecated since 10.10. Bonus points if the login keyring can be updated at the same time.
-setpolicy "newPasswordRequired=1"
on newer systems, it still works somehow/bugged [it accepts that option, but..], I tried it now on MacOS 10.15 Catalina, and the user is not able to log anymore Lol. SSH quits the session just after inserting the password. GUI login is impossible for that such user now.