Skip to main content

Examining and Breaking the NTP Service and Switching SELinux Modes

LaV 4.1: Examining and Breaking the NTP Service 



1.  Before breaking anything, it would be a good idea to see what NTP looks like when it is working properly. The ntpq c pe command displays the list of peer machines the local NTP server is synchronizing with. Login as root on your local workstation, stationX. example. com, and execute ntpq to confirm NTP 18 working. Your output

should look similar to the following:


instructor.exam LOCAL(0) 11 u 719 1024 377 4.360 8.931 0.832

2. Check to see if the NTP server, ntpd, is a SELinux protected service. Use ps to find out if it is. What command options did you use?

3. Break NTP by restoring a backup copy of its configuration file etc ntp conf First, copy it to root's home directory without providing any options to the cp command. Once you verify there is a backup copy, remove the original configuration file in etc. To recover from this mishap, move (don't copy) the backup into etc  ntp . conf and restart the ntpd service.

Are there any visual indications ntpd is not working properly? Check the state of the server to see what hosts it is synchronizing With.

4.  It looks like you will have to do some SELinux troubleshooting. Install the f setroubleshoot package. Once the package is installed, start the setroubleshootd daemo
Log out and back into your graphical console to allow GNOME to use any tools that were jllSt installed.



Switching SELinux Modes

Scenario: One way to temporarily “fix” an SELinux problem is to Change the SELinux mode to permissive mode.

 Instructions:
1. Change the SELinux mode so SELinux doesn't enforce its policy rules. Restart the ntpd, daemon and confirm whether or not the service is working properly.

2.  Setting SELinux to permissive mode 13 an extreme measure that should only be used as a last

resort to get a service working when it has a SELinux 1ssue. This approach to troubleshooting impacts the security of every service running on the system in a negative way.

Restore SELinux so it enforces its policy rules. Restart the ntpd service and confirm NTP no longer functions properly.


Comments

Popular posts from this blog

Try winter cough cough Home remedies will run away from this country prescription without any medication Your cold cough

Try winter cough cough Home remedies will run away from this country prescription without any medication Your cold cough



 Friendly winter cough is a common problem in the winter season which is applicable to all people and if the winter season is going on right now then we are ten persons, three persons have this disease.
 And if we get a lot of colds or coughs this season, if we try to take medicine instead of a doctor, this can be relieved.

Let's have friends today what we know about this country remedy


The easiest and easiest way

 Put some salt in warm water and rinse with water. Relieves throat problems as well as drinking hot drinks like tea and coffee and yes, drinking warm water also helps.

 To relieve cold soreness and body aches or headaches
 Add turmeric powder ginger powder and a teaspoon of honey in a glass of warm water. This will provide a lot of relief.


 Native remedy for cold

 Friends find a steam machine in the market and if you want to buy a steam machine, boil hot water …

The DNS Hierarchy

The DNS Hierarchy



DNS is a directory of resource records organized as a tree resource record maps a name to data

klostname to IP address, domain to authoritative nameserver etc.

A domain is a collection of records in the same DNS subtree The root domain consists ol the whole DNS tree

The domain com consists only of names that end in .com hedhat .com is a subdomain of .com which in turn is a subdomain of

Ths part of a domain served by a particular nameserver is called the zone The nameserver is authoritative tor these names

The zone may cover an entire domain, or selected subdomains may be delegated to be served out as Separate zones by other nameservers

The fONOWing definitions are essential to understanding how DNS works Namesen any network device that is running a DNS server.

Resource Record an entry in a zone on the nameserver that maps one thing to anotherie. hostname to Ip address

Domain: a collection of resource records which end in a common name and represent an entire subtree of the DN…

These healthy tips on how to stay healthy in winter

These healthy tips on how to stay healthy in winter



 Eating different types of fruits in the winter improves the body's health by eating figs in winter strengthens bones

 Keeping body healthy in winter season should be taken care of different fresh vegetables and fruits in winter maintains health in our body.
 Winter fruits provide essential nutrients to our body by eating the fruits of winter benefits the body's mushroom tissues.

 Friends today we know what fruits should be eaten in the winter to keep our bodies healthy and which fruits to eat



Bananas
 By eating bananas every morning from 11 to 12 pm, blood pressure is in control of our body and also keeps the heart healthy.

Apples
 The dark circles under the eyes on our face become darker. If we eat apples in winter, it provides a great deal of relief, as well as eating apples every day, we can control our weight and keep skin cancer away.

Cranberry
 Half a cup of cranberries contains about 25 calories if needed.  Consuming it daily i…