Name:
- (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 will find all files owned by the user zeppo, anywhere on the filesystem?
- What command would delete shemp and his home directory?
- On redhat-derived systems (such as CentOS, Fedora and Mandriva), what are two configuration files for the useradd command?
- Configure your system so that all users by default create files with permissions of 600. What entry did you put in which file?
- 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?
- Why shouldn't you run fsck on a mounted filesystem?
- What command will display the MAC address of your NIC?
- 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 the IP address 127.127.0.1 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. You may want to experiment with various flags to see which is fastest.
- What command or keystroke will interrupt a running command (such as a ping?)