Open main menu

CDOT Wiki β

Changes

OPS235 Lab 5 - CentOS6

145 bytes removed, 21:49, 7 January 2014
Investigation 5: How do we Manage System Services?
=== Investigation 5: How do we Manage System Services? ===
{{Admon/note|Remain in your fedora2 centos2 VM|Perform these steps in the '''fedora2centos2''' virtual machine.}}
We have seen that maintaining unneeded '''packages can be a security risk''' due to the unnecessary increase in the complexity of your system. Similarly, it is also unnecessarily hazardous, and even more so, to leave unneeded services running. In this investigation, we will learn how to '''control services, and turn off those services that we think are not necessary to help reduce security risks'''.}}
<li>Issue the following Linux command:
<ul>
<li><code>systemctl listservice -units -status-type=serviceall</code></li>
</ul>
</li>
<li>Note the services that are currently running.</li>
<li>Refer to Use the tutorial ([[init vs systemd]] ) to learn how to use the systemctl <code>service</code> command to stop the service named '''iptables'''</li> <li>Issue the systemctl <code>service</code> command to verify that this service has stopped.</li> <li>If you reboot now - the iptables service will be turned back on. We don't want it on though, it causes students headaches. To turn it off permanently we need to disable the service. Refer to the tutorial ([[init vs systemd]] ) to learn how to use the systemctl chkconfig command to disable the service named ''': <code>chkconfig iptables'''off</code></li>
<li>Reboot and confirm that it's no longer running.</li>
</ol>