User jack logs in to host Solaris and executes the following command sequence:
Which three statements are correct?
A.
User jack can edit testfile because he has read and write permissions at the group level.
B.
User jack can use cat to output the contents of testfile because he has read permission as the
file owner.
C.
User jill can change the permissions of testfile because she has write permission for the file at
the group level.
D.
User jill can edit testfile because she has read and write permission at the group level.
E.
User jack can change permissions for testfile because he is the owner of the file.
F.
User jack can change permissions for testfile because he has execute permission for the file.
BDE
BDE
jack@sol11:~$ ls -l testfile
-r–rwx— 1 jack wheel 5 Jan 14 11:18 testfile
jack@sol11:~$ id
uid=503(jack) gid=10(wheel)
jack@sol11:~$ id jill
uid=504(jill) gid=10(wheel)
-A-
jack@sol11:~$ ehco “edit” >> testfile
-bash: testfile: Permission denied
-B-
jack@sol11:~$ cat testfile
junk
-C-
jill@sol11:/export/home/jack$ chmod 777 testfile
chmod: WARNING: can’t change testfile
-D-
jill@sol11:/export/home/jack$ echo “edit” >> testfile
jill@sol11:/export/home/jack$ cat testfile
junk
edit
-E-
only the owner can chmod a file
-F-
same as -C- above, jill is same group, can’t chmod