Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 4
    Though one might note that if the password is stored locally, root can change it anyway, regardless of what the PAM modules say. E.g. creating the hash with mkpasswd -m sha512crypt and editing it into /etc/shadow should work on a run-of-the-mill Ubuntu system. If the user database is stored in e.g. LDAP, then the server should enforce password checking (if it's enforced locally in PAM, root can likely just contact the LDAP server directly to set the password.) Commented Dec 19, 2024 at 12:43
  • 2
    @ilkkachu yeah or root is also capable of modifying the password policy. Commented Dec 19, 2024 at 13:13