sunday - change passwd file

so i want to replace just passwd file and instead of x i a have added a generated hash from :
openssl passwd -1 -salt sunny pass123

but i cant login with that pass

what do i miss?

The file that contains the actual authentication creds is the shadow one, and you can’t modify it without root access!

You can try this tho:
https://hacknpentest.com/linux-privilege-escalation-via-writeable-etc-passwd-file/