If you can add parameters in the bootmanager at startup, just put init=/bin/sh or init=/bin/bash there. The System will boot and drop you in a shell. You have root permissions but the filesystem will probably be readonly.
mount / -n -o remount,rw
and it is readwrite. After that you can change the password. Reboot the box and use that pw.