Photon OS

  • 1.  How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Jun 11, 2019 10:45 AM

    Hello,

    Can anyone tell me how to disable the password complexity requirement on Photon OS v2.0 &/or v3.0 please?

    I know this is not a best practice, but I want to use it in my lab environment and it enforcing a complex password is a real PITA.

    Thanks

    M



  • 2.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Jun 11, 2019 12:05 PM

    It's probably just the standard password settings file at /etc/pam.d/system-auth or /etc/pam.d/common-password.



  • 3.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Jun 11, 2019 12:23 PM

    daphnissov​ Thank you; but could you expand a little on what needs to be changed?

    There is a /etc/pam.d/system-auth file but NOT a /etc/pam.d/common-password file.

    Thanks

    M



  • 4.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Jun 11, 2019 12:26 PM

    Recommend doing some Google searches. This is very well covered out there and not Photon specific.



  • 5.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Jun 11, 2019 12:50 PM

    Not really helpful daphnissov​; As a forum Guru and a vExpert you of all people should know that these forums are about helping people and not just suggesting "Google it".



  • 6.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Jun 11, 2019 02:02 PM

    Part of those roles include helping people to help themselves first. You can read the article in my signature to understand why that's significant.

    Photon has no complexity requirements it enforces for root. For other users, it does so when using passwd. If you want to lift those, you can edit /etc/pam.d/system-password and comment out the "password required" line and alter the requisite line to just state "pam_unix.so". When you're logged in as a non-root account and call passwd you will have no limitations.



  • 7.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Sep 11, 2020 10:05 AM

    Thank you for such a wonderful article and sharing. God bless you.!


    MyPascoConnect



  • 8.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Jan 27, 2023 11:27 AM

    Photon 3.0 definitly forces password complexity for root



  • 9.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted May 25, 2022 01:21 PM

    Thanks.



  • 10.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Feb 08, 2021 07:28 PM

    google search brought me here

     

    In Photon 3.0 - to disable the remember password count 

    /etc/pam.d/system-password

    changed remember from 5 to 0



  • 11.  RE: How do I disable password complexity on Photon OS (v2.0 &/or 3.0)

    Posted Nov 24, 2021 01:05 PM

    This is great information, thanks for sharing.

    mythdhr