Highlighted
Enthusiast
Enthusiast

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

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

0 Kudos
6 Replies
Highlighted
Immortal
Immortal

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

0 Kudos
Highlighted
Enthusiast
Enthusiast

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.

pastedImage_0.png

Thanks

M

0 Kudos
Highlighted
Immortal
Immortal

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

0 Kudos
Highlighted
Enthusiast
Enthusiast

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".

0 Kudos
Highlighted
Immortal
Immortal

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.

0 Kudos
Highlighted
Contributor
Contributor

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


MyPascoConnect

0 Kudos