Exercise: Copy a Tree To Remote Machine (And Adjust Permissions)#
In
Exercise: Verify, Repeat
(and the exercise series that preceded it), you created an entire file
hierarchy on the local machine (your work machine), rooted at
/tmp/parent.
Continuing from there …
Copy that tree to the remote machine, under the name
~/my-parent-copy. Use thescpcommand to do this.Use one single local
sshcommand to tune the permissions of the remote tree~/my-parent-copy(and its contents, recursively) so that others don’t have any permissions to do anything.(Hint: you can use the
-Roption to thechmodcommand to modify permissions recursively)