Debian and grub2 password reset

In grub boot screen type “e” for edit, and search for line starting with linux – add “init=/bin/bash” at the end linux /boot/vmlinuz-version root=UUID=hex ro quite init=/bin/bash Press CTRL+X to boot and execute following: mount -o remount,rw / enter “passwd” to change root password (or passwd username) execute “sync” and make reboot