Lab 2
Name:
IP address:
- (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 |
- What command would delete shemp and his home directory?
- Show the syntax of the tail command to show the last 25 lines of /var/log/messages.
- What is one reason unmounting a filesystem may fail?
- On RedHat-derived systems (such as Fedora and CentOS), what two text files define the default behavior for the useradd command?
- Why shouldn't you run fsck on a mounted filesystem?
- How would you configure your system so that all users by default create files with permissions of 600
- What is the MAC address of your eth0 adapter?
- If you were to add 10.10.2.1 as your first nameserver, what file would you have to alter?
- Show the syntax of the command to ping your production server exactly twice
- Using traceroute, determine how many hops there are between your classroom system and www.hennepintech.edu
- Show the syntax of the command to send pings as fast as possible:
- True or false: The name of a file is stored in the file's inode?
- What type of network protocol is used for a ping?