Listed below are the step by step procedures to reset the root password in different versions of CentOS, CoreOS, Debian, Ubuntu and FreeBSD. Begin this procedure by booting your server into single user mode.
February 3, 2016
How to reset the root password on Linux and FreeBSD
Read more at HowtoForge