Which three statements are correct?

User jack logs in to host Solaris and executes the following command sequence:

Which three statements are correct?

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.



Leave a Reply 7

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


Marek

Marek

Answer F is incorrect, execute permission have no flow on user ability to change permission to this file. This is owner privilege which respond for this.

The Answers D, E, and B, are correct.

Murali

Murali

Yes, B,D & E are correct

Mir

Mir

B is correct as compare to F option..

Phumlani

Phumlani

Agree B,D & E

Real life example:

A.
jack@solaris:~$ echo “Welcome” > testfile
bash: testfile: Permission denied

B.
jack@solaris:~$ cat testfile
Hello World

C.
jill@solaris:/jack$ chmod o+x testfile
chmod: WARNING: can’t change testfile

D.
jill@solaris:/jack$ echo “Welcome” > testfile
jill@solaris:/jack$ cat testfile
Welcome

E.
jack@solaris:~$ chmod o+x testfile
jack@solaris:~$ ls -l testfile
-r-xrwx–x 1 jack staff 8 Aug 12 13:48 testfile

F. (Jack without the execute permission)
jack@solaris:~$ chmod o+rw testfile
jack@solaris:~$ ls -l testfile
-r–rwxrwx 1 jack staff 8 Aug 12 13:48 testfile

mohammed

mohammed

Hi All,
How many of these questions are correct?