In Linux, how do I disable single-user logon? in Linux, how do I disable single-user logon?
If you are not allowed to access a single user, you must first configure the password for GRUB. you only need to modify/boot/grub. conf or/etc/grub. conf (/etc/grub. conf is/boot/grub. conf ).
For example: vi/boot/grub. conf to edit the configuration file. you can add password = password to the next line of the splashimage parameter. after saving the password, restart the computer and log on to the GRUB menu page again, in this case, you cannot directly use the e command to edit the start tag. you must use the p command and enter the correct password before editing the start tag, however, it is not safe to set a plaintext password.
If you have obtained the plaintext password, you can modify the GRUB startup tag to change the root password.
Therefore, MD5 encryption is required. Enter the grub-md5-crypt in the terminal and press enter, then the system will ask to enter the same password twice, then the system will output the MD5 code. You only need to copy the generated MD5 ciphertext, and then set the global or menu password according to the password-md5 MD5 ciphertext format, save and quit, and restart the computer.