Lab 2

Name:

IP address:

  1. (12 points) Add the following users with the following characteristics. Note that you may have to create groups. It does not matter what commands or methods you use to create the users, as long as they are created according to the specifications below.
    username password shell primary group additional groups
    larry larry7 /bin/bash larry stooge
    curly curly6 /bin/bash curly stooge
    moe howard /bin/bash moe stooge
    shemp howie2 /bin/bash stooge
    harpo silent /bin/bash harpo marx
    chico tweettweet /bin/sh chico marx
    groucho tobacc0 /bin/bash groucho marx
    zeppo lost /bin/bash zeppo marx

  2. What command would delete shemp and his home directory?

  3. Show the syntax of the tail command to show the last 25 lines of /var/log/messages.

  4. What is one reason unmounting a filesystem may fail?

  5. On RedHat-derived systems (such as Fedora and CentOS), what two text files define the default behavior for the useradd command?

  6. Why shouldn't you run fsck on a mounted filesystem?

  7. How would you configure your system so that all users by default create files with permissions of 600

  8. What is the MAC address of your eth0 adapter?

  9. If you were to add 10.10.2.1 as your first nameserver, what file would you have to alter?

  10. Show the syntax of the command to ping your production server exactly twice

  11. Using traceroute, determine how many hops there are between your classroom system and www.hennepintech.edu

  12. Show the syntax of the command to send pings as fast as possible:

  13. True or false: The name of a file is stored in the file's inode?

  14. What type of network protocol is used for a ping?