RecoveryMode is very useful for users who have boot issues because it will help them repair their systems using CLI mode with root privileges. The problem here is that unauthorized users who may have access into Recovery Mode would have root permissions on your system files without the need to enter the root password. If you are a bit concerned about this security issue, you can disable Recovery Mode using the instructions given below.
WARNING: Disable "Recovery Mode" at your own risk! Any incorrect modification may render your system unusable or unbootable.
But firstly, let's backup the file we are going to edit with this command:
sudo cp /boot/grub/grub.cfg /boot/grub/grub.cfg.back
Edit now grub.cfg with this command:
sudo gedit /boot/grub/grub.cfg
For Linux Mint, edit it with this command:
sudo pluma /boot/grub/grub.cfg
In this file, press CTRL+F and search for "recovery" without quotes. The lines related to recovery mode should be commented all in order to disable RecoveryMode. They will be represented as follows:
menuentry 'Ubuntu, with Linux x.x.x- (...) (recovery mode)' (...) {
(...)
(...)
(...)
}
After being commented, they would look like this:
# menuentry 'Ubuntu, with Linux x.x.x- (...) (recovery mode)' (...) {
# (...)
# (...)
# (...)
# }
Here is a real example:
Click To Enlarge
To enable Recovery Mode, run this command from the terminal:
sudo cp /boot/grub/grub.cfg.back /boot/grub/grub.cfg
No comments:
Post a Comment