0% found this document useful (0 votes)
111 views

Lab Work 1

This document provides instructions for a lab work assignment on operating system security. It involves creating a file and folder structure, adding content to files, creating users and groups, modifying permissions and ownerships, and deleting a user. The tasks are worth a total of 100 marks and require recording all commands used. Students must submit their work, including command logs and screenshots, by a specified deadline.

Uploaded by

Adly Hakim
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
111 views

Lab Work 1

This document provides instructions for a lab work assignment on operating system security. It involves creating a file and folder structure, adding content to files, creating users and groups, modifying permissions and ownerships, and deleting a user. The tasks are worth a total of 100 marks and require recording all commands used. Students must submit their work, including command logs and screenshots, by a specified deadline.

Uploaded by

Adly Hakim
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

IKB21103- OPERATING SYSTEM SECURITY Page 1 of 2

LAB WORK 1

Total: 100 marks

ASSESSED LEARNING OUTCOME:


CLO2: Analyze the concepts of a secure OS, models and design of secure OS
Weightage: 10 marks

INSTRUCTIONS:
▪ Answer ALL questions.
▪ This is an open-book lab work.
▪ Login as a regular/normal user to your fedora system.
▪ Record every command/job you used in order to answer these questions
▪ Your work log must be submitted online via VLE by 08/11/2022 , 11:55pm.
▪ Any late submission will not be entertained.
1. Using shell commands, create the following file/folder structure in your home directory:

hr employ.txt … = Directory

… = File

exp purc.txt
finance

income taxes.sh
corp

marketing plan.txt

orders.sh

sales pos
cstmr.txt

Record all the commands you used and put them in the answer sheet.
(20 marks)

2. Using the file cstmr.txt in the file structure above, write at least 5 different student names (full
names) in the file. Write one name in a single line. Capitalize the first letter of each word in the
list. Record the command/steps you used and put them in the corresponding space in your
answer sheet.
(8 marks)

3. Using the file employ.txt in the file structure above, write at least 4 different lecturer names in
the file. Write one name in a single line. Record the command/steps you used and put them in
the corresponding space in your answer sheet.
(6 marks)

September 2022
IKB21103- OPERATING SYSTEM SECURITY Page 2 of 2

4. Create the following 5 users and 3 groups in your system.

Username Name Password Group Group Password


userA Ahmed a1234567 fingrp salesgrp
userB Balqis fingrp mrktgrp
userC Chan c5555555 mrktgrp fingrp F1n@NC3-
userD Danna mrktgrp
userE Evan myPass01 salesgrp

(20 marks)

5. Change the ownerships of the files and directories as follows:

Owner Owner
Files Directory
User Group User Group
purc.txt userA fingrp marketing userC
taxex.sh userB sales salesgrp
orders.sh userE salesgrp income userB fingrp
cstmr.txt userE
plan.txt mrktgrp
(20 marks)

6. Change the permissions of files and directories according to the following:

File/ directory User Group World Description


purc.txt Do all Do all Read only
taxes.sh Do all Cant execute None
orders.sh Do all Do all Do all Execute always as
userE (setuid)
cstmr.txt Read/Write Only Read/Write Only No changes
plan.txt Can’t execute Can’t execute Can’t execute R/W are not important
marketing Read/Write Only No changes No changes
sales Do all Do all None No user can delete or
modify any other user
files (sticky)

(20 marks)

7. Delete userC and transfer all of its permissions to userD.


(6 marks)

Remember: Keep a record of the commands and take screenshots of their outputs and put them all
in the answer sheet provided.

All the best

September 2022

You might also like