Skip to main content
Question

AD Accounts "Your password wil expire in XX days"

  • October 24, 2011
  • 5 replies
  • 19 views

Forum|alt.badge.img+8

Any way to change the preferences for the prompt "Your password will expire in XX days"?

Noah Swanson
Imaging Specialist
Enterprise Desktop Services
Phone: 309-765-3153
SwansonNoah at johndeere.com

5 replies

  • October 24, 2011

sudo defaults write /Library/Preferences/com.apple.loginwindow PasswordExpirationDays NUMBER

I believe it only works on 10.6 up. You could also do this through Managed Preferences, which I'd recommend then if your companies policy changes, you can just make the change in one place.

Brendon Cunningham
Senior Technical Analyst
Desktop Engineering


Forum|alt.badge.img+24
  • Valued Contributor
  • October 24, 2011

Uh, don't you *want* to rely upon your domain for this?
---
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436


Forum|alt.badge.img+8
  • Author
  • Contributor
  • October 24, 2011

We get email notifications for this that start at 15 days. By default the mac is notifying at 30 days. People seem to get confused :)


Forum|alt.badge.img+15
  • Contributor
  • February 24, 2012

We are using this method for 10.6.x based systems without issue.

Now that we are testing 10.7.x not so much. looks like its just being ignored.

Has anyone had any luck setting the password expired time in 10.7.x?


Forum|alt.badge.img+7
  • Contributor
  • August 31, 2012

Hey Guys,

I ran into the same issue and was able to figure out why sudo defaults write /Library/Preferences/com.apple.loginwindow PasswordExpirationDays NUMBER wasn't working.

Apparently 10.7/10.8 require that you declare "NUMBER" as an integer when using defaults. So this is how it should look:

sudo defaults write /Library/Preferences/com.apple.loginwindow PasswordExpirationDays -int Number