title: “Security / Sicherheit”
date: 2015-04-06T20:19:50
slug: security-sicherheit
Hardening init
vi /etc/inittab
and add the line:
ss:S:respawn:/bin/sulogin
Hardening GRUB (Debian 7)
1 – Type the command: grub-mkpasswd-pbkdf2
2 – Enter the desired password
It will generate a long password encrypted like this: grub.pbkdf2.sha512.10000.FC58373BCA15A797C418C1EA7FFB007BF5A5
3 – Copy the complete generated code.
4 – Edit the file: /etc/grub.d/40_custom
5 – At the end of the file add the following commands:
set superusers=”username”
password_pbkdf2 username password
Obviously you should replace the words “username” with your desired user name, and the word password for the encrypted password generated in the previous step.
For example, if your desired username is John, and the password is grub.pbkdf2.sha512.10000.FC58373BCA15A797C418C1EA7FFB007BF5A5 your full code will look like this:
set superusers=”John”
password_pbkdf2 John grub.pbkdf2.sha512.10000.FC58373BCA15A797C418C1EA7FFB007BF5A5
6 – Save the file and exit.
7 – Finally, type the command: update-grub
