File Access Permissions
File Access Permissions
Assignment #3
Construct the following commands and write them in the blanks
provided
FILE ACCESS PERMISSIONS
1. Make a file named test, in your home directory
2. Change the access permissions so that it looks like this: r-xr-xr-x
______________________________________________________
3. Change the permissions to:
r-x---r-x
______________________________________________________
4. Try to edit the file with the previous permissions. What happens
when you try to change it? ________________________________
5. Change the permissions to: rwxrwxrwx
______________________________________________________
6. Change the permissions to: -wxrw-r-x
______________________________________________________
7. Try to edit the file with the previous permissions. What happens?
Why? __________________________________________________
8. Change the permissions so that other has read and write, but not
execute permission. ______________________________________
9. Change the permissions so that only user can read the file.
______________________________________________________
11. If you turn off all permissions for user, and you are user, can you
still see the file as other?
a.
b.
c.
12. When you copy a file does it retain the same access permissions?
a.
rw-------
b.
Check the access permissions of your file test
________________________________________________________
c.
Make a copy of test called testcpy
________________________________________________________
d.
Record the access permission for the new file
________________________________________________________
e. Can you explain the result?
________________________________________________________
LINKS
13. Make a hard link to your test file in the same directory called
testlnk ______________________________________________
14. Does the link have the same access permissions as the original
file? ________________________________________________
15. If you change the link access permission, does the original file
access permission change? (Try it) _______________________
DIRECTORY ACCESS
1. Make a directory called DAP in your home directory
______________________________________________________
2. View the access permissions of the directory:
______________________________________________________
3. Copy a file from your home directory into the DAP directory
______________________________________________________
4. Turn off all access to the directory for user, group and other
______________________________________________________