VMware Modern Apps Community
mc1903cae
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

Reply
0 Kudos
10 Replies
daphnissov
Immortal
Immortal

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

Reply
0 Kudos
mc1903cae
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

Reply
0 Kudos
daphnissov
Immortal
Immortal

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

Reply
0 Kudos
mc1903cae
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".

Reply
0 Kudos
daphnissov
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.

Reply
0 Kudos
TiredDolphin
Contributor
Contributor

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


MyPascoConnect

Reply
0 Kudos
lodoss900
Enthusiast
Enthusiast

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

Reply
0 Kudos
mythdhr
Contributor
Contributor

This is great information, thanks for sharing.

mythdhr

Reply
0 Kudos
anilspp
Enthusiast
Enthusiast

Thanks.

Reply
0 Kudos
roman3112
Contributor
Contributor

Photon 3.0 definitly forces password complexity for root 😉

Reply
0 Kudos