DevOps virtualization
In this lab you will administer user accounts by creating new users.
On your headless virtual machine, create the following user accounts:
Set the passwords to be whatever you would like. Make sure that the user joe
still exists from a previous assignment.
On the same machine, create the following groups with the following members:
Add your joe user to the sudo group.
Remove the user otis and its associated home directory from the system.
In your root (‘/’) directory, make a new directory, vegetables
with the following files inside and the following owners and permissions.
vegetables rwxrwxrwx u=gomer g=ladies
|__ carrots.txt rw-rw-rw- u=barney g=barney
|__ beets.txt rw-rw---- u=andy g=taylors
|__ snow_peas.txt rw-r--r-- u=aunt_bea g=cops
Use the su
command to login as aunt_bea without logging your user off.
whoami
command.id
command.While logged in as aunt_bea
/vegetables
directory.pickles.txt
with permissions rw-r—– . Do not change the owner or group.The grading script will be run as you are logged into scratch. The command you will execute will be similar for all of
your assignments that have an autograder. Here is a sample of the command you will run: run_grader.py --n 2 --ip 1.2.3.4
. The 2 is representative of lab2. (Lab 3 would replace the 2 with a 3). NOTE you will pass in the ip address of your virtual machine that you have created. You will see some feedback. You should make sure that all your tests pass and that your score is correctly recorded. Please see your instructor for any help or questi ons on the output.