| It is therefore forbidden to install X.org or any other equivalent graphics server.
Otherwise, your grade will be 0. | Запрещено устанавливать X.org или любой другой графический сервер.
В противном случае ваша оценка будет 0. | |
| --- | --- | --- |
| You must choose as an operating system either the latest stable version of Debian (no testing/unstable), or the latest stable version of CentOS. Debian is highly recommended if you are new to system administration. | Вы должны выбрать в качестве операционной системы последнюю стабильную версию Debian, либо последнюю стабильную версию CentOS. Debian настоятельно рекомендуется | |
| Setting up CentOS is quite complex. Therefore, you don’t have to
set up KDump. However, SELinux must be running at startup and its
configuration has to be adapted for the project’s needs. | Если выбрать CentOS, то ненужно настраивать KDump. Но нужно настроить SELinux и поставить на автозагрузку. | |
| AppArmor for Debian must be running at startup too. | AppArmor для Debian должен быть запущен при запуске. | /usr/sbin/aa-status |
| You must create at least 2 encrypted partitions using LVM. Below is an example of the expected partitioning: | Вы должны создать по крайней мере 2 зашифрованных раздела с помощью LVM. Ниже приведен пример | |

| During the defense, you will be asked a few questions about the
| operating system you chose. | Почему Вы выбрали именно эту операционную систему? | Потому что раньше сталкивался с linux mint и apt-get |
|---|---|---|
| For instance, you should know the differences between aptitude and apt, or what SELinux or AppArmor is. In short, understand what you use! | Вы должны знать различия между aptitude и apt, SELinux и AppArmor. | |
| Короче поймите, чем пользуетесь! | aptitude оболочка с GUI для apt. AppArmor обеспечивает изоляцию с помощью профилей, загружаемых в ядро, как правило, при загрузке. | |
| A SSH service will be running on port 4242 only. For security reasons, it must not be possible to connect using SSH as root. | Служба SSH должна работать только на порту 4242. Нужно запретить подключатся пользователю root по SSH | service sshd status |
cat /etc/ssh/sshd |
||
*PermitRootLogin no* |
||
| The use of SSH will be tested during the defense by setting up a new | ||
| account. You must therefore understand how it works. | Нужно создать нового пользователя и подключится через него по SSH | useradd user_test (-s /bin/bash) |
passwd usser_test |
||
| You have to configure your operating system with the UFW firewall and thus leave only port 4242 open. | Настроить брандмауэр UFW. | |
| Оставить открытым только порт 4242 | ||
| брандмауэр должен быть активен при запуске виртуальной машины | service ufw status |
|
| или | ||
ufw status |
||
/usr/sbin/ufw status |
||
| For CentOS, you have to use UFW instead of the default firewall. | ||
| Toinstall it, you will probably need DNF. | Для CentOS вы должны использовать UFW вместо брандмауэра по умолчанию. для установки понадобится DNF | |
| The hostname of your virtual machine must be your login ending with 42 (e.g., wil42). You will have to modify this hostname during your valuation. | ||
| Хостнейм должен быть логином, заканчивающимся на 42 например wil42. | ||
| Хостнейм нужно поменять во время проверки | hostname |
|
nano /etc/hostname |
||
| **You have to implement a strong password policy: | ||
| -** *Your password has to expire every 30 days. |
/etc/login.defs - базовая политика,
/etc/pam.d/common-password - расширенная политика |
| *You have to install and configure sudo following strict rules:
- Authentication using sudo has to be limited to 3 attempts in the event of an incorrect password.visudo- логи, сообщения, 3 попытки;
tty - Defaults requiretty это исключит возможность отображения пароля в открытом виде при выполнении команды sudo через ssh |
| In addition to the root user, a user with your login as username has to be present. | В дополнение к корневому пользователю должен присутствовать пользователь с вашим логином в качестве имени пользователя. | |
| This user has to belong to the user42 and sudo groups. During the defense, you will have to create a new user and assign it
to a group. | пользователь должен принадлежать к группам user42 и sudo. Во время защиты вам придется создать нового пользователя и назначить его к группе. | groupadd grup_test usermod -a -G grup_test test |
| Script called monitoring.sh. It must be developed in bash. | Написать скрипт monitoring.sh
Его нужно разрабатывать на bash. | |
| At server startup, the script will display some information (listed below) on all terminals every 10 minutes (take a look at wall). The banner is optional. No error must be visible. | При запуске сервера скрипт будет отображать некоторую информацию (указанную ниже) на всех терминалах каждые 10 минут (посмотрите на стену). Баннер не обязателен. Никакой ошибки не должно быть видно. | |
| Your script must always be able to display the following information:
*- The architecture of your operating system and its kernel version.
| Below are two commands you can use to check some of the subject’s requirements: | Ниже приведены две команды, которые можно использовать для проверки некоторых требований: |
|---|
For CentOS:

For Debian:

head -n 2 /etc/os-release
ss -tunlp
| Set up partitions correctly so you get a structure similar to the one below: | Правильно настройте разделы, чтобы получить структуру, аналогичную приведенной ниже: |
|---|---|
| Set up a functional WordPress website with the following services: lighttpd, MariaDB, and PHP. | Создайте функциональный веб-сайт WordPress со следующими сервисами: lighttpd, Mari- |
| aDB и PHP. | |
| Set up a service of your choice that you think is useful (NGINX / Apache2 ex- | |
| cluded!). During the defense, you will have to justify your choice. | Настройте услугу по вашему выбору, которая, по вашему мнению, полезна |
| (исключая NGINX / Apache2). | |
| During the defense, you will have to justify your choice. | Во время защиты вам придется обосновать свой выбор. |
| To complete the bonus part, you have the possibility to set up extra services. In this case, you may open more ports to suit your needs. | |
| Of course, the UFW rules has to be adapted accordingly. | Чтобы завершить бонусную часть, разрешается открыть больше портов в UFW |
| The bonus part will only be assessed if the mandatory part is PERFECT. Perfect means the mandatory part has been integrally done | |
| and works without malfunctioning. If you have not passed ALL the mandatory requirements, your bonus part will not be evaluated at all. | Бонусная часть будет начисляться только в том случае, если обязательная часть Идеальный. Идеально означает, что обязательная часть была выполнена полностью и работает без сбоев. Если вы не прошли ВСЕ обязательные требования, ваша бонусная часть вообще не будет оцениваться. |
| You only have to turn in a signature.txt file at the root of your Git repository. | Вам нужно только сдать signature.txt файл в корневом каталоге вашего репозитория Git. |
|---|---|
| You must paste in it the signature of your machine’s virtual disk. | Вы должны вставить в него подпись виртуального диска вашей машины. |
| To get this signature: | |
| shasum centos_serv.vdi | Получи хешсумму командой: |
| shasum centos_serv.vdi | |
| If the two of them are not identical, your grade will be 0. | Если подписи не идентичны, ваша оценка будет равна 0. |