Creating, modifying, and removing file and folder permissions
In this lab, you'll learn the foundations of how managing user permissions work on a Windows machine, as well as, a Linux machine.
β
Head's up: You'll experience a delay as the labs initially load (particularly for Windows labs). So, please wait a couple of minutes for the labs to load. The grade is calculated when the lab is complete, so be sure to hit "End Lab" when you're done!
Windows Qwiklab
π Example 1
You will need to do 5 tasks (Example 1-5) to complete this lab. Each example will showcase how permissions can be changed using Windows PowerShell.
β
The instructions are pretty straightforward. You can copy & paste the commands onto the VM platform. If for some reason you can't copy & paste, please just type in the command.
π Example 2
For this task, you will give "Phoebe" permission to access a "Secret" folder.
π Example 3
The third task will have you change permission to a group ("Everyone") for the "Music" folder.
π Example 4
Give "Authenticated Users" "Write" access to the "not_so_important_document."
π Example 5
In this final task, you will change the permissions of a file named "public_document" to be made publicly readable.
Linux Qwiklab
π Modifying permissions on "important_document"
For the Linux version, you will need to complete 5 tasks in order to complete the lab.
Modify permission of a file
Modify the permission of a folder
Change the owner of a folder
Change permission of document
Change owner of a document
The first task will have you change file permissions using the sudo chmod command.
π Modify permissions on "secret_folder"
Here you will change the permission of "secret_folder"
π Change owner of "Taco"
This task will have you change the owner of the folder named "Taco."
π Change permissions of "not_so_important_document"
This will have you change permissions of a file named "not_so_important_document"
β
It shows you the steps on how to individually change the permissions (Owner, User, and Group).
β
You can accomplish the same result by using the numerical argument to set the permissions. Here's the command that meets all three criteria at once:
β
βsudo chmod 764 not_so_important_document
π Change owner of "public_document"
The final task will have you open the permissions to the "public_document"
β
You can use the numeric argument or the traditional way of changing permissions.
π Additional help
If you need additional help please attend the Tech Sessions (Thursdays 10 am EST and 6 pm EST) or collaborate with your fellow learners in the tech chat via Slack!
β
You can also reach our tech trainers via Calendly (Edison or Vanessa) for a 1:1 session.