OA. free
Free
Accenture Core Computer Science Core Computer Science Medium

In UNIX-like OS, the authority for a certain file varies depending on the user who uses it.

Accenture technical mcq question, verified with a worked answer. Free to practise - no sign-up.

In UNIX-like OS, the authority for a certain file varies depending on the user who uses it. Which of the following description is correct?

Choose one option.
Show answer & explanation
Answer: C. There is one owner and group in the file, and different authorities are given to the user who is the owner, the users belonging to the group and users of the other type.

In UNIX-like systems, each file has exactly one owner (user) and one group associated with it. File permissions are divided into three categories: owner (user), group, and others (rest of the world), each with potentially different permission levels (read, write, execute). Options A and B are incorrect because they limit permissions to only the owner; options D is incomplete as it omits the 'others' category and incorrectly suggests multiple owners/groups.

Step-by-step Derivation:
UNIX file permissions model: Every file has metadata including (uid, gid) representing the owning user and group. The chmod system divides permissions into three rwx triplets: [owner][group][others]. Example: ls -l file.txt shows -rw-r--r-- 1 alice developers 1024 Jan 15 file.txt where alice is the owner, developers is the group, and permissions differ for each category. Only option C accurately describes all three permission categories: owner, group members, and others.