WEBVTT

00:00.730 --> 00:04.530
Chapter 16 securing the system step by step

00:08.100 --> 00:14.370
the unauthorized reproduction in whole or in part of this publication in any form is prohibited

00:24.450 --> 00:29.950
in this lesson we will dedicate ourselves to an overview of basic issue of system security.

00:30.210 --> 00:36.780
Let's start with dividing the hard disk into partitions in order to maintain an optimal level of security.

00:36.780 --> 00:42.990
We recommend that a vision into the partitions slash slash swap slash var and slash boot

00:52.730 --> 00:55.490
after having performed this division.

00:55.490 --> 01:01.370
We shouldn't forget about the correct settings of the administrators password the password shouldn't

01:01.370 --> 01:04.190
be too easy or too short.

01:04.190 --> 01:07.400
We recommended using passwords containing special characters

01:15.270 --> 01:28.710
only the use of a sufficiently difficult and long password will allow us to secure our system optimally.

01:28.720 --> 01:34.060
Now let's proceed with setting simple rules for filtering the network traffic.

01:34.270 --> 01:37.170
We will use the script that we have prepared earlier.

01:37.720 --> 01:41.710
Let's copy the exhilarate files from the disk included in the set

02:04.580 --> 02:10.510
the startup of the firewall dot sh script will cause the packets incoming on all ports to be blocked.

02:10.520 --> 02:15.950
With the exception of 20 21 FGP and 80 HTP

02:22.180 --> 02:44.780
we can check the set of the rules currently valid with the IP tables command.

02:44.850 --> 02:50.730
After a preliminary configuration of the rules for the network traffic we will now proceed with switching

02:50.730 --> 02:52.560
off the superfluous services.

02:52.560 --> 02:58.580
Therefore let's analyze the slash ATC slash I-net d dot com file

03:07.600 --> 03:13.530
as we can see at the present moment a number of services are available that we don't intend to use.

03:13.660 --> 03:16.490
We will switch them off by using the commentary sign

03:21.310 --> 03:24.300
in order for the changes entered to be visible.

03:24.310 --> 03:29.160
It is necessary to reload the I net DB configuration daemon first.

03:29.170 --> 03:33.640
We do this using the command kill all H U P I D

03:40.650 --> 03:47.350
comin out the records of the Damen I d configuration file we can also use the ready made script.

03:47.400 --> 03:48.520
D.

04:04.430 --> 04:11.520
If the s s h service server is installed in the system it is also necessary to use a secure configuration

04:38.760 --> 04:41.790
after making changes to the configuration file.

04:41.820 --> 05:05.320
We must force the reloading of the program settings.

05:05.330 --> 05:12.230
Now let's proceed with the next verification and configuration of the programs which the id attribute

05:13.130 --> 05:20.750
we will use for this purpose the program it will generate a list of files that work with administrator

05:20.750 --> 05:50.590
rights.

05:50.770 --> 05:57.660
After a moment DSU ID text file has been generated which contains the applications it has found.

05:57.670 --> 06:00.360
Let's have a look at it and make modifications.

06:21.560 --> 06:24.970
We update the settings using the P.L. command

06:30.590 --> 06:39.930
as we can see the attribute has disappeared from the string representing the access rights.

06:39.990 --> 06:45.840
If we don't want every user to be able to change his own password we delete the id attribute from the

06:45.920 --> 06:46.440
slash.

06:46.470 --> 06:50.240
You are slash Ben slash past the WD program.

07:20.330 --> 07:25.340
The last operation we will perform is to determine the secure terminals where the administrator can

07:25.340 --> 07:26.300
log on locally

07:48.760 --> 07:53.920
after performing the basic configuration we shouldn't forget about the kernel of our system.

07:53.920 --> 07:58.090
The current kernel version is located under the address kernel dot org

08:11.950 --> 08:15.720
so we have now reached the end of the basic system configuration.

08:15.880 --> 08:19.270
Advanced security mechanisms will be presented in less than 18.
