Lab04 - 29640 - SE 4-1
Lab04 - 29640 - SE 4-1
Lab04 - 29640 - SE 4-1
Subject: OS Lab
Task: 04
Date: 14/10/2022
1. Create a blank text file on your home directory with your name.
3. Change the directory to student and copy your text file in this directory.
7. Assign permission of write only to user (do it twice by using both symbolic
and numeric methods).
8. Verify that above task has done successfully.
Permission was denied because earlier we had given it only write permission
and because of that the file can’t be read.
11. Assign permission of read only to user (do it twice by using both symbolic
and numeric methods).
16. Assign permissions of read and write only to user (do it twice by using both
symbolic and numeric methods).
18. Assign all permissions to user (do it twice by using both symbolic and
numeric methods).
20. Assign permission of read and execute only to group (do it twice by using
both symbolic and numeric methods).
21. Verify that above task has done successfully.
22. Assign all permissions to all users (do it twice by using both symbolic and
numeric methods).
2. Assign permissions to read only permission to the user (do it twice by using
both symbolic and numeric methods).
3. Enter at least 10 10 different students’ names in pstudent.txt and fstudent.txt.
If any error appears, debug that error for user only.
4. Now create directory named RIPHAH and assign permissions of read only
to user and group (do it twice by using both symbolic and numeric methods).
5. Copy all files to directory RIPHAH. If any error appears, debug that error for
user and group only.
6. After that append the file students.txt with first five sorted names from
pstudent.txt and last five sorted names from fstudent.txt.
8. Change the permissions of file students.txt read only and both other files
read and write only (do it twice by using both symbolic and numeric
methods).
No new name can be appended because the “students.txt” has only read-
only permission.
10. Display contents of all the files.