file is attached

201A | Assignment 2 | 10 marks | Dr. Abdulsalam Basabaa To do this assignment, you need to use Ubuntu or Kali Linux, and do the following: 1) [2 marks ] Create 4 users name d: U -yourID -1 TO U -youID -4. For example, if your student ID # is 2500234, the n your users would be: U -2500234 -1, U -2500234 -2, U -2500234 -3, U -2500234 -4. 2) [2 marks ] Use your ID # to assign password s for all users that you have created above ( step 1) 3) [2 marks ] Create 4 groups name d: G -yourID -1 TO G -youID -4. For example, if your student ID # is 2500234, then your groups would be: G -2500234 -1, G -2500234 -2, G -2500234 -3, G -2500234 -4. 4) [4 marks ] For each user, log in using his credentials (from steps 1 and 2 above, for example, U - 2500234 -1 and 2500234). Then: a. Inside the home directory of the user, create a file, named F -yourID. txt : i. Write your “full nam e” inside the file . ii. Assign “read access ” permission for everyone on that file. b. Also, inside the home directory of the user, c reate a folder (directory) , named D-yourID , and assign “write access ” permission for everyone on that folder. 5) Finally, you need to log in using the root account (your original username and password), and obtain the following 4 files and submit them on Moodle only : a. File named Passwd -yourID .txt . T o get it, run the following command in the terminal: cat /etc/passwd > Passwd -yourID .txt , for example, if your student ID # is 2500234 , the file would be Passwd -2500234.txt b. File named Group -yourID.txt . T o get it, run the following command in the terminal: cat /etc/group > Group -yourID.txt , for example, if your student ID # is 2500234, the file would be Group -2500234.txt c. File named Shadow.txt . T o get it, run the following command in the terminal: sudo cat /etc/ shadow >Shadow -yourID.txt, for example, if your student ID # is 2500234, the file would be Shadow -2500234.txt d. File name d Users -yourID.txt . T o get it, run the following command in the terminal: sudo ls -lR /home > Users -yourID .txt , for example, if your student ID # is 2500234, the file would be Users -2500234.txt Remark : the system might ask you for a password, please do so to run command s correctly. WQ: General deduction s • (-2 marks) for each file that is Not n am ed as mentioned in the description. • (-2 marks) for s ubmit ting a file that is not required. • (-2 marks) for each file : if the file is MODI FIED after generating it in step 5. Good luck!