Trap 1: `chmod a-w file.txt` removes write permission from all users,…
The a-w mode removes write permission for user, group, and others. While it does affect the owner, the statement as written is true, but it is not one of the two correct answers because the question asks for true statements and this is indeed true. However, in the context of the exam, it is a valid operation but not the intended pair; wait, this is a distractor. Actually, a-w does remove write from all classes, so it is true. To keep a single unambiguous key, this option is replaced with a false statement: `chmod a-w` removes write only from group and others, which is false.
Trap 2: `chmod g+s directory` sets the setgid bit, causing new files to…
The g+s mode sets the setgid bit on a directory, which does cause new files and subdirectories to inherit the directory's group ownership. This is a true statement. However, to have exactly two correct answers, this option is replaced with a false statement: `chmod g+s` sets the sticky bit, which is false; that is +t.
Trap 3: `chmod 755` gives the owner read, write, and execute, while group…
The octal 755 translates to rwxr-xr-x. The owner has read, write, and execute (7), and group and others have read and execute (5). This statement accurately describes 755, so it is true. However, to maintain exactly two correct answers, this option is replaced with a false statement: `chmod 755` gives group write permission, which is false because 5 does not include write.