Challenge 05 - Standard file permissions
< Previous Challenge - Home - Next Challenge >
Description
In this challenge you will learn about the Linux standard file permissions and understand how to work with file permissioning on a Linux environment
- As regular user (student), create a directory
~/permissions
- Create a file called
myfile.txt
under ~permissions
- List the properties of the file
/var/log/waagent.log
. Then copy this file to your permissions directory
- As root, create a file called rootfile.txt in the
/home/student/permissions
directory
- As regular user (student), look at who owns this file created by root
- Change the ownership of all files in
/home/student/permissions
to yourself (student)
- Make sure you (student) have all rights to files within
~
, and others can only read
Success Criteria
- Check if the directory was sucessfully created
- Confirm the file created under
~permissions
- Check the file inside your permissions directory. Who is the new owner of this file now?
- Make sure you have created the file as the user root in the
/home/student/permissions
directory
- Ensure you are logged as regular user (student), then check the owner of the file created by the user root
- Validate you was able to change the onwership of all files in in
/home/student/permissions
to the user student
- Confirm your rights within
~
, and make sure other users can only read
Learning Resources