SK0-004 · Question #214
After a migration to a new server, users report that they are unable to save files to their home directories. A check of the permissions on the home directories indicate that the permissions are set…
The correct answer is A. Add the w permission for the users. The user permission set is missing the write bit, preventing users from saving files to their own home directories despite having read and execute access.
Question
After a migration to a new server, users report that they are unable to save files to their home directories. A check of the permissions on the home directories indicate that the permissions are set as follows:
User: r-x Group: r-- Other: r-x A server administrator verifies the correct user and group ownership of the home directories. Which of the following will MOST likely resolve the issue?
Options
- AAdd the w permission for the users.
- BAdd the x permission for the group.
- CRemove the x permission for other.
- DRemove the r permission for the group.
How the community answered
(35 responses)- A77% (27)
- B3% (1)
- C6% (2)
- D14% (5)
Why each option
The user permission set is missing the write bit, preventing users from saving files to their own home directories despite having read and execute access.
In Linux/Unix permissions, the 'w' (write) bit is required to create, modify, or delete files within a directory. The current user permission 'r-x' provides read and execute but not write access, so adding 'w' to make it 'rwx' will allow users to save files to their home directories.
The group already has the read permission set and the execute bit is separate; adding execute for the group does not resolve the inability to write files for the owning user.
Removing execute from other restricts traversal for other users but does not grant the owning user the ability to write to the directory.
Removing read from the group reduces group visibility into the directory but has no effect on the owning user's ability to save files.
Concept tested: Linux file system write permissions for user ownership
Source: https://www.gnu.org/software/coreutils/manual/html_node/File-permissions.html
Topics
Community Discussion
No community discussion yet for this question.