Open main menu

CDOT Wiki β

Changes

OPS235 Lab 4 - Fedora17

103 bytes added, 20:42, 2 February 2012
no edit summary
== Investigation 5: The /etc/passwd file ==
# Look at '''Perform this investigation on the VM named ''<u>f16host</etc/passwd fileu>''.'''# Make note of the contents of that file.
# Read about the file: http://linux.die.net/man/5/passwd
# Now look at the contents of the '''/etc/passwd''' file.# Make sure you know what note of the contents of that file, and make certain and record in your lab log-book the information that each field contains.
# Why do you think there are so many users?
# Look at the names of the users. What do you think these user names represent? Are they people?
{{Admon/note|Use f16host|Perform these steps in the '''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.
# 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.
# Grep Use the grep command to obtain information for each of the newly created users within the '''/etc/passwd ''' file for each of the new users.
#* What is the home directory of each user?
#* What group is each user in?
#* Grep the /etc/shadow file for each of the new users.
#* Make note of this information.
#* What is the purpose of the /etc/shadow file?
# Create two new dummy users, ops235_1 and ops235_2.
# Investigate the home directory of one of your new users.
#* Create a new user named foobar, with the option to automatically create a home directory.
#* Look at the contents of foobar's home directory. What do you notice?
# Be sure to record your observations in your lab notes.
{{Admon/note|Use fedora3|Perform these steps in the '''fedora3''' virtual machine.}} 
# Add your matrix account user to '''fedora3'''.
13,420
edits