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?
Show answer & explanation
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.