Open main menu

CDOT Wiki β

Changes

OPS435 Python3 Lab 8

575 bytes added, 21:42, 10 November 2019
Replace run() function calls with sudo()
: 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 makdUser() 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 you are ready, as you professor to confirm that he can access the new user account "ops435p" on you vm on myvmlab.
= LAB 8 SIGN-OFF (SHOW INSTRUCTOR) =
1,760
edits