Resetting passwords via init=/bin/bash


Newbie error folks!

Have forgotten and/or corrupted my password so I can’t login as per normal but have edited cmdline.txt and have run passwd osmc however I get this error…

Enter new UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged

I’ve tried mount -o remount,rw / and…
mount -rw -o remount / but get

mount point /passwd does not exist.

Any suggestions? Thanks in advance.

(Running a Raspberry Pi 4 and the latest version of osmc.)

OSMC isn’t supported on Raspberry Pi 4 yet,
so I’m not sure that the instructions for OSMC are applicable.

Sorry Sam, it is a Raspberry Pi3 after all.

I can still access the Osmc/Kodi gui via my tv and a keyboard if that helps…

You should be running mount -rw o remount,rw / but not mount -rw /passwd

That’s done the trick! Thank you!