Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For this section here is a subset of the /etc/passwd file root:x:0:0:root:/root:

ID: 3753584 • Letter: F

Question

For this section here is a subset of the /etc/passwd file root:x:0:0:root:/root:/bin/bash daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologirn bin:x:2:2:bin:/bin:/usr/sbin/nologin sys:x:3:3:sys:/dev:/usr/sbin/nologin www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin vagrant:x:1000:1000: :/home/vagrant:/bin/bash ubuntu:x:1001:1001:Ubuntu:/home/ubuntu:/bin/bash alice:x: 1002:1002:Alice, ,, :/home/alice:/bin/bash bob: x:1003:1003:,,, clark:x:1004:1004:Clark Kent,, , :/home/clark:/bin/bash :/home/bob:/bin/bash Here is a subset of the /etc/group file: root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4:syslog, ubuntu staff:x:50:alice,bob users:x: 100:clark,alice alice:x:1002:bob bob:x:1003: clark:x:1004: Here is the output of a directory listing using the tree -pugfi command sudo tree -pugfi vagrant@vagrant-ubuntu-trusty-64: S sudo tree -pugfi [drwxrwxr-x alice staff ] ./directoryl [drwx--x-alice staff ]./directory1/directory2 C-rw-r--r-- alice staff ]./directory1/directory2/file [drwx-alice alice ]./directory1/directory3 C-rw-ralice users ]./directory1/file1 alice alice ] ./directory1/file2 Here is hte output of listing the attributes of files file1 and file2 Isattr file* vagrant@vagrant-ubuntu-trusty-64:~/directory1s sudo lsattr file* --e- file1 i--e- file2 Answer the following questions using the above information. (6 points)

Explanation / Answer

1. Everyone can list the contents of directory 1 as all owner, group and users have read permissions.

2. Yes, Bob can create files in directory 1 as he belongs to staff group and staff group has write permissions on this directory.

3. Clarke can read file 1 as he belongs to users group and users group has read permission on file 1. He can also read file 3 as anyone has read permissions on this file.

4. Directory 3 since has owner and group both as alice. Also only owner has rwx permissions.

5. Yes, Bob can see contents of file 3 as he belongs to staff group and staff group has read permissions on this file.

6. According to lsattr attributes of file 2, it is immutable (specified by the letter i). Thus Alice cannot modify or append the file.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote