Changes

Jump to: navigation, search

OPS235 Lab 4 - CentOS7

136 bytes added, 12:31, 24 September 2018
no edit summary
[[Category:OPS235]]
{{Admon/caution|THIS IS AN OLD VERSION OF THE LAB|'''This is an archived version. Do not use this in your OPS235 course.'''}}
=LAB PREPARATION=
=== Part 1: How do we Manage System Services? ===
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'''.}}
#Use your '''centos2''' VM for this part.
'''Answer Part 1 observations / questions in your lab log book.'''
 
===Part 2: How do we Manage Runlevels?===
for x<br>
do<br>
&nbsp; &nbsp; userPassWd=$(date | md5sum | cut -d" " -f1)<br>
&nbsp; &nbsp; useradd -m -c "$(echo $x | cut -d":" -f2 | sed 's/+/ /g')" -p $userPassWd $(echo $x | cut -d":" -f1)<br>
&nbsp; &nbsp; mail -s "Server Account Information" $(echo $x | cut -d":" -f3) <<+<br>

Navigation menu