Sometimes the need arises that one would need to set a password to disallow anyone else boot the system without correct password. This can be easily done when using GRUB as a loader. First boot your linux system. The enter grub’s command prompt:
This is a companion discussion topic for the original entry at https://linuxconfig.org/set-boot-password-with-grub