r/linuxadmin • u/maxcoder88 • May 20 '26
Linux/Unix domain-joined computer objects with PasswordNeverExpires=True — expected behavior or should I remediate?
Running an AD Health Assessment on our Windows 2019 forest and it flags ~40 Linux/Unix computer accounts as PasswordNeverExpires=True (userAccountControl bit 65536 set). Before I blindly clear the flag, I want to understand what's actually going on.
Environment:
- Mixed Linux estate: RHEL 7/8/9, Ubuntu, some legacy CentOS, plus NetApp/QNAP appliances
- Join methods vary:
realm join(SSSD), Samba/Winbind, some old Centrify leftovers - Some boxes have
PasswordLastSetgoing back 5+ years but are actively authenticating users via Kerberos - SSSD configs I've checked either have
ad_maximum_machine_account_password_age = 0or the parameter is missing entirely
Questions:
- Is
PasswordNeverExpires=Trueactively set by the Linux join tooling, or did sysadmins set it manually years ago to prevent breakage? Doesrealm join/adcli/net ads joinset bit 65536 by default? - If I clear the flag on a Linux box where SSSD rotation is disabled, does anything actually break? My understanding is the GPO doesn't actively expire passwords — the client initiates the change. So clearing the flag on a non-rotating box should be functionally a no-op while making the health report happy. Am I missing something?
- What's actual best practice in 2026 for Linux machine password rotation? Enable
ad_maximum_machine_account_password_age = 30everywhere? Cronadcli update? Or just accept Linux passwords don't rotate and document the exception?
Looking for war stories from anyone running mixed Windows/Linux AD at scale. Bonus if you've tested what happens when clearing the flag on a non-rotating box.
10
Upvotes
View all comments
Show parent comment
1
u/cacheclyo May 31 '26
Yeah this is the key bit a lot of tools gloss over. Those health checks love to scream about
PasswordNeverExpireswithout really understanding that computer accounts are already “special” in how expiry works.On the SSSD side, if it’s joined sanely, it’ll rotate the machine password on its own and AD will happily keep accepting it. Clearing the flag won’t suddenly cause AD to go “lol nope, account dead now” unless the client actually tries to change it and fails for some other reason.
Biggest “gotcha” I’ve seen is more around old winbind / Centrify setups that never rotate at all. In that case, like you said, clearing the flag is basically a cosmetic change for the report. Stuff keeps working because AD doesn’t proactively kill the account just for being old.
If you want to be neat in 2026 land, I’d standardize on SSSD with rotation enabled and clean up the flags so your health report shuts up. But nothing dramatic breaks just from unsetting
PasswordNeverExpireson those Linux boxes.