Question 12 10 Marks Alice Bob Users Unix System Alice Wants Share Files Work Documents Di Q30253396

Question 12 (10 marks) Alice and Bob are both users on a Unix system, and Alice wants to share some files in a work documents directory with Bob. Alice executes the following series of commands: alice&research homeJ$ pwcd /home [alicedresearch home]$ 1s -ld alice drwxr-x---3 alice alice [aliceCresearch home] cd alice@research alice]$ 1s -ld work-docs/ 4096 Apr 29 10:43 alice 2 alice alice 4096 Apr 29 10:43 vork-docs/ alice&research alice]$ cd work-docs,/ [aliceresearch work-docs]$ 1s -1 total 8 -rw-rw-r--1 alice alice -rw-rw-r--1 alice&research work-docs]$ chmod 644 file2.txt [alice&research work-docs]$ umask 0002 [aliceSresearch work-docs]$ vi file3.txt alice&research work-docs] 49 Apr 29 10:40 file1.txt 22 Apr 29 10:43 file2.txt 1alice alice (In the final command, she uses the vi editor to create a third document) Bob subsequently executes the following commands [bobresearch bob]$ id uid-1004 (bob) gid-1004 (bob) groups-1004 (bob),1003 (alice) [bob@research bob]$ cd alice/work-docs a. (1 mark) Will the cd alice/work-docs command issued by Bob succeed? b. (3 marks) Can Bob edit the file file1.txt? If not, can he overwrite it, and why? (3 marks) Can Bob edit the file file2.txt? If not, can he overwrite it, and why? (3 marks) Can Bob edit the file file3.txt? If not, can he overwrite it, and why? c. d.

Question 12 (10 marks) Alice and Bob are both users on a Unix system, and Alice wants to share some files in a work documents directory with Bob. Alice executes the following series of commands: alice&research homeJ$ pwcd /home [alicedresearch home]$ 1s -ld alice drwxr-x—3 alice alice [aliceCresearch home] cd alice@research alice]$ 1s -ld work-docs/ 4096 Apr 29 10:43 alice 2 alice alice 4096 Apr 29 10:43 vork-docs/ alice&research alice]$ cd work-docs,/ [aliceresearch work-docs]$ 1s -1 total 8 -rw-rw-r–1 alice alice -rw-rw-r–1 alice&research work-docs]$ chmod 644 file2.txt [alice&research work-docs]$ umask 0002 [aliceSresearch work-docs]$ vi file3.txt alice&research work-docs] 49 Apr 29 10:40 file1.txt 22 Apr 29 10:43 file2.txt 1alice alice (In the final command, she uses the vi editor to create a third document) Bob subsequently executes the following commands [bobresearch bob]$ id uid-1004 (bob) gid-1004 (bob) groups-1004 (bob),1003 (alice) [bob@research bob]$ cd “alice/work-docs a. (1 mark) Will the cd “alice/work-docs command issued by Bob succeed? b. (3 marks) Can Bob edit the file file1.txt? If not, can he overwrite it, and why? (3 marks) Can Bob edit the file file2.txt? If not, can he overwrite it, and why? (3 marks) Can Bob edit the file file3.txt? If not, can he overwrite it, and why? c. d. Show transcribed image text

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *