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.
1 - Display the users you created and include a screenshot of the users, the prompt and the command.
On the same machine, create the following groups with the following members:
- cops: andy, barney, gomer (he sometimes helps)
- comedians: barney, gomer, otis
- drunks: otis
- ladies: aunt_bea, helen
- taylors: andy, opie, aunt_bea
Add your joe user to the sudo group.
2 - Display the groups you created and include a screenshot.
Remove the user otis and its associated home directory from the system.
3 - Display the users you created and include a screenshot. Show that otis is removed.
4 - Display the groups you created and include a screenshot. Show that otis is removed.
5 - Run the
ls /home command to make sure otis’s home directory is gone. Take a screenshot.
In your $HOME 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
su command to login as aunt_bea without logging your user off.
- Issue the
- Then issue the
6 - Take a screenshot of the results of both commands - include the prompt.
While logged in as aunt_bea
- Change directory to the
- Create a new file called
pickles.txtwith permissions rw-r—– . Do not change the owner or group.
7 - Take a screenshot of the vegetable directory, its files and new permissions
To pass off
All screenshots should show the prompt, command and results. Multiple commands in one screenshot are permitted. Submit your screenshots in Canvas.
Last Updated 02/15/2019