Open main menu

CDOT Wiki β

Changes

OPS235 Lab 4 - Fedora17

106 bytes removed, 21:55, 2 February 2012
no edit summary
== Investigation 6: Adding users ==
{{Admon/note|Use f16host|'''Perform these steps in this investigation on the VM named ''<u>f16host</u>''f16host.''' system. Due to a configuration issue, these steps may not work normally in the fedora1 virtual host (previous versions of this lab used fedora1 for this investigation).}}
# Read the man page for the '''useradd''' command.
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
# Read the man page for the '''userdel ''' command. Note which option automatically removes the users home directory when that user is deleted.
# Delete the user ops235_1 using the command <code>userdel ops235_1</code>
# Delete the user <code>ops235_2 </code> using the same command with the option which removes the home directory of the user.# Check the contents of the <code>/home </code> directory. What do you notice?# Check the contents of the <code>/etc/group </code> directory. What do you notice?
'''Answer the Investigation 8 observations / questions in your lab log book.'''
== Investigation 9: Modifying users ==
{{Admon/note|Use fedora1|Perform these steps in the '''fedora1''' virtual machine.}}
'''Perform this investigation on the VM named ''<u>fedora1</u>''.''' # Read the man page for the '''usermod ''' command. Note which options change the user's full name, primary group, supplementary groups, and shell.
# Add each of your new users to the group <code>ops235 </code> (in other words, add ops235 to each user as a supplementary group).
# Examine <code>/etc/group</code>. What has changed?
# Use the <code>usermod </code> command to associate each of your pod mates' full name to their user name, as shown in your text. With each change, examine their entries in the <code>/etc/passwd</code> file. What has changed?
# Be sure to record your observations in your lab notes.
13,420
edits