Changes

Jump to: navigation, search

OPS435 Python3 Lab 8

220 bytes added, 21:48, 10 November 2019
Create a Fabric task called makeUser()
: Test your updated fabfile.py until you get the same result as when you apply it to your own worker VM.
== Create a Fabric task called makeUser() ==
: The makdUsermakeUser() function should perform the following:
::* create a new user called "ops435p" with home directory "/home/ops435p".
::* add it to the sudo group called "wheel".
::* add your professor's ssh public key to the file named "authorized_keys" in ~ops435p/.ssh directory. Make sure that you set the proper permissions on both the directory ~ops435p/.ssh and the file "~ops435p/.ssh/authorized_keys.
:When Add the makeUser() to your final version of fabfile.py. :Test the new task makeUser() on your local VM first, and deploy to your vm on myvmlab.:After the successful deployment of the makeUser() task on you are readymv on myvmlab, as you ask your professor to verify and confirm that he can access the new user account "ops435p" on you vm on myvmlabhas been created correctly.
= LAB 8 SIGN-OFF (SHOW INSTRUCTOR) =
1,760
edits

Navigation menu