How to undo command "pwpolicy -u testuser -setpolicy "maxFailedLoginAttempts=20""

Hi all, since I saw that the macs didnt have a max failed login attempts on (or so I tought) I did the command (testuser as my user) pwpolicy -u testuser -setpolicy "maxFailedLoginAttempts=20". I have firewall on. How can I undo this?

All the best,

G


PS: I mean how to set it to firewall defult.

MacBook Air

Posted on Feb 2, 2023 10:31 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 2, 2023 11:00 AM

giualb wrote:

Hi all, since I saw that the macs didnt have a max failed login attempts on (or so I tought) I did the command (testuser as my user) pwpolicy -u testuser -setpolicy "maxFailedLoginAttempts=20". I have firewall on. How can I undo this?
All the best,
G

PS: I mean how to set it to firewall defult.


See if there is anything here—


ref:

Finding the user password expiration date - Apple Community


Password Change Blocked By Policy - Apple Community



from the man page

man pwpolicy | more



-clearaccountpolicies Removes all of the account policies for the

specified user. If no user is specified,

removes the global account policies.


4 replies
Question marked as Top-ranking reply

Feb 2, 2023 11:00 AM in response to giualb

giualb wrote:

Hi all, since I saw that the macs didnt have a max failed login attempts on (or so I tought) I did the command (testuser as my user) pwpolicy -u testuser -setpolicy "maxFailedLoginAttempts=20". I have firewall on. How can I undo this?
All the best,
G

PS: I mean how to set it to firewall defult.


See if there is anything here—


ref:

Finding the user password expiration date - Apple Community


Password Change Blocked By Policy - Apple Community



from the man page

man pwpolicy | more



-clearaccountpolicies Removes all of the account policies for the

specified user. If no user is specified,

removes the global account policies.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to undo command "pwpolicy -u testuser -setpolicy "maxFailedLoginAttempts=20""

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.