Linux Essentials (010-160) — Question 47
What is true about the owner of a file?
Answer options
- A. Each file is owned by exactly one user and one group.
- B. The owner of a file always has full permissions when accessing the file.
- C. The user owning a file must be a member of the file's group.
- D. When a user is deleted, all files owned by the user disappear.
- E. The owner of a file cannot be changed once it is assigned to an owner.
Correct answer: A
Explanation
Statement A is correct because every file in a filesystem is linked to a single user and group for ownership. Statement B is incorrect as the owner may not always have full permissions due to permission settings. Statement C is false since a user can own files without being a member of the group. Statement D is misleading as files may remain after a user is deleted, depending on system settings. Statement E is wrong because file ownership can be changed using commands like 'chown'.