Changes

Jump to: navigation, search

OPS235 Lab 5 - Fedora17

107 bytes removed, 09:47, 27 September 2012
Investigation 5: How do we Manage System Services?
'''Answer the Investigation 4 observations / questions in your lab log book.'''
===Investigation 5: How do we Manage System Services?===
{{Admon/note|Remain in your fedora2 VM|Perform these steps in the '''fedora2''' 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'''.}}
 
#Issue the following Linux command:
#* <code>chkconfig --list</code>
#Note the services that are running.
 
{{Admon/note|'''chkconfig''' command is now deprecated|The '''chkconfig''' command has now been replaced by the '''systemctl''' command to manage system services.}}
<ol>
<li value="3">Issue the following Linux command:
<ul>
<li><code>systemctl list-units --type=service</code></li>
</ul>
</li>
<li>Note the services that are currently running. Are there more services with this command as opposed to issuing the chkconfig command?</li> <li>Refer to the tutorial ([[init vs systemd]] ) to learn how to use the systemctl command to stop the service name called named '''udev.serviceiptables'''</li>
<li>Issue the systemctl command to verify that this service has stopped.</li>
<li>Issue 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 command to start disable the service named '''udeviptables''' service, </li> <li>Reboot and verify confirm that this service is it's no longer running.</li>
</ol>

Navigation menu