Changes

Jump to: navigation, search

OPS235 Lab 4 - CentOS7

203 bytes removed, 02:25, 3 April 2015
no edit summary
== Part 2: Adding users ==
{{Admon/note|Use centos1|Perform these steps in the '''centos1''' system.}}
#Perform this part in your centos1 VM.
# Read the man page for the <b><code><span style="color:#3366CC;font-size:1.2em;">useradd</span></code></b> command.
# Create a new user account for each of your pod mates, using their learn account name as a user name. Give each user a password.
# Be sure to record your observations in your lab notes.
{{Admon/note|Use centos3|#Perform these steps this part in the '''your centos3''' virtual machineVM.}}
# Add your matrix account user to '''centos3'''.
== Part 3: Managing Groups ==
{{Admon/note|Use centos1|#Perform these steps this part in the '''your centos1''' virtual machineVM.}} 
# Read the man page for the <b><code><span style="color:#3366CC;font-size:1.2em;">groupadd</span></code></b> and <b><code><span style="color:#3366CC;font-size:1.2em;">groupdel</span></code></b> commands.
# Note which option allows you to set the Group ID number (GID) when you create a new group.
== Part 4: Deleting users ==
{{Admon/note|Use centos1|#Perform these steps this part in the '''your centos1''' virtual machineVM.}} 
# Read the man page for the <b><code><span style="color:#3366CC;font-size:1.2em;">userdel</span></code></b> command. Note which option automatically removes the users home directory when that user is deleted.
== Part 5: Modifying users ==
{{Admon/note|Use centos1|#Perform these steps this part in the '''your centos1''' virtual machineVM.}} 
# Read the man page for the usermod command. Note which options change the user's full name, primary group, supplementary groups, and shell.
===Part 1: How do we Manage Runlevels?===
{{Admon/note|Use #Perform this part in both your centos2 and centos3|Perform these steps in both of these virtual machinesVMs.}} 
The runlevel command is now deprecated in Fedora, and will likely be deprecated in RHEL/CentOS at some point as well, but for now this is what the industry is using.
<ol>
<livalue="2">Issue the following Linux command:
<ul>
<li><b><code><span style="color:#3366CC;font-size:1.2em;">runlevel</span></code></b></li>
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'''.}}
#Perform this part in your centos2 VM.
<ol>
<livalue="2">Issue the following Linux command:
<ul>
<li><b><code><span style="color:#3366CC;font-size:1.2em;">service --status-all</span></code></b></li>
13,420
edits

Navigation menu