nerdexam
CompTIA

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.

Troubleshooting

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)
  • A
    77% (27)
  • B
    3% (1)
  • C
    6% (2)
  • D
    14% (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.

AAdd the w permission for the users.Correct

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.

BAdd the x permission for the group.

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.

CRemove the x permission for other.

Removing execute from other restricts traversal for other users but does not grant the owning user the ability to write to the directory.

DRemove the r permission for the group.

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

#Linux file permissions#chmod#home directories#user access

Community Discussion

No community discussion yet for this question.

Full SK0-004 Practice