0% found this document useful (0 votes)
33 views2 pages

File Access Permissions

This document provides instructions for commands to manipulate file and directory permissions on a UNIX operating system. It includes commands to: 1. Create a file called "test" and change its permissions to r-xr-xr-x. 2. Change the permissions of the test file to r-x---r-x. 3. Change permissions so that other users have read and write access but not execute permission. It also covers commands related to copying files, creating hard links, and setting directory permissions.

Uploaded by

OrtissSmartengo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

File Access Permissions

This document provides instructions for commands to manipulate file and directory permissions on a UNIX operating system. It includes commands to: 1. Create a file called "test" and change its permissions to r-xr-xr-x. 2. Change the permissions of the test file to r-x---r-x. 3. Change permissions so that other users have read and write access but not execute permission. It also covers commands related to copying files, creating hard links, and setting directory permissions.

Uploaded by

OrtissSmartengo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

ITU UNIX Operating System

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.

turn off all user permissions _____________________________

b.

Turn on rw permission for other __________________________

c.

Try to edit the file. What happens? _______________________

12. When you copy a file does it retain the same access permissions?
a.

Assign file test the permission

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
______________________________________________________

You might also like