Unable to reset password

I’m trying to reset the password for the osmc user but I can’t get it to take.

I’m connecting to the raspberry pi via ssh ssh osmc@<my.pi.ip.address>

I then issue this command passwd

Changing password for osmc.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully```

  The reset says it worked but when I reboot the raspberry pi, the osmc user's password reverts back to the default password.  Has anyone else experienced this or have suggestions on how to make the password change permanent?

Try
sudo passwd osmc

That doesn’t work either. It says password updated successfully. If I disconnect from ssh and then reconnect, it accepts the new password. But if I reboot and then try to reconnect with the new password, I get this error:

Permission denied. please try again.

You have a larger underlying problem. I’d suggest you provide logs.

Use another SD card. You may have a fake or non-genuine capacity card; or the filesystem is corrupted.

I’m guessing you’re right. I’m unable to format the card or delete anything from it. But it still works when I put it in my raspberry pi. I just can’t make changes. It’s weird.

I bought a new card and plan to rebuild. Thanks for the suggestions.