mirror of
https://github.com/trimstray/the-practical-linux-hardening-guide.git
synced 2025-12-06 17:22:51 +01:00
added 'Useful resources'; minor updates
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ Basically when you want to prohibit unauthorized reconfiguring of your system, o
|
|||||||
|
|
||||||
You can set password for the bootloader for prevents users from entering single user mode, changing settings at boot time, access to the bootloader console, reset the root password, if there is no password for GRUB-menu or access to non-secure operating systems.
|
You can set password for the bootloader for prevents users from entering single user mode, changing settings at boot time, access to the bootloader console, reset the root password, if there is no password for GRUB-menu or access to non-secure operating systems.
|
||||||
|
|
||||||
###### Generate password hash
|
##### Generate password hash
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Debian like distributions
|
# Debian like distributions
|
||||||
@@ -22,7 +22,7 @@ grub-mkpasswd-pbkdf2
|
|||||||
grub2-mkpasswd-pbkdf2
|
grub2-mkpasswd-pbkdf2
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Updated grub configuration
|
##### Updated grub configuration
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat > /etc/grub.d/01_hash << __EOF__
|
cat > /etc/grub.d/01_hash << __EOF__
|
||||||
@@ -42,6 +42,10 @@ grub-mkconfig > /boot/grub/grub.cfg
|
|||||||
grub2-mkconfig > /boot/grub2/grub.cfg
|
grub2-mkconfig > /boot/grub2/grub.cfg
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###### Useful resources
|
||||||
|
|
||||||
|
- [How To Password Protect GRUB Bootloader In Linux](https://www.ostechnix.com/password-protect-grub-bootloader-linux/)
|
||||||
|
|
||||||
#### :eight_pointed_black_star: Protect bootloader config files
|
#### :eight_pointed_black_star: Protect bootloader config files
|
||||||
|
|
||||||
Set the owner and group of `/etc/grub.conf` to the root user:
|
Set the owner and group of `/etc/grub.conf` to the root user:
|
||||||
|
|||||||
Reference in New Issue
Block a user