nerdexam
CompTIA

SK0-003 · Question #845

A user cannot access files on /deps/it directory. The administrator verifies permissions are set rw- ------ for the directory. Which of the following actions need to be performed to only grant read…

The correct answer is A. Set folder permissions to 760. The current permissions for the directory /deps/it are rw- ------ (octal 600), meaning only the owner has read and write access. To grant a user read access, typically through group permissions in a Unix-like system, the permissions must be adjusted.

Server administration

Question

A user cannot access files on /deps/it directory. The administrator verifies permissions are set rw- ------ for the directory. Which of the following actions need to be performed to only grant read access to the user on the IT directory?

Options

  • ASet folder permissions to 760.
  • BSet folder permissions to 770.
  • CSet folder permissions to modify.
  • DSet folder permissions to full control.

How the community answered

(22 responses)
  • A
    73% (16)
  • B
    5% (1)
  • C
    14% (3)
  • D
    9% (2)

Why each option

The current permissions for the directory `/deps/it` are `rw- ------` (octal 600), meaning only the owner has read and write access. To grant a user read access, typically through group permissions in a Unix-like system, the permissions must be adjusted.

ASet folder permissions to 760.Correct

Setting folder permissions to 760 (rwx rw- ---) grants read, write, and execute access to the owner, and read and write access to the group. If the user needing access is a member of this group, they would gain read access, which addresses the problem, and this option is the least permissive choice that grants read access via group permissions compared to other Unix-style octal choices.

BSet folder permissions to 770.

Setting folder permissions to 770 (rwx rwx ---) grants read, write, and execute access to both the owner and the group, providing more permissions than needed for "only read access."

CSet folder permissions to modify.

"Modify" is a Windows NTFS permission, which is not applicable to the Unix-style octal permissions indicated by `rw- ------`.

DSet folder permissions to full control.

"Full control" is a Windows NTFS permission, which is not applicable to the Unix-style octal permissions indicated by `rw- ------`, and grants excessive permissions beyond "only read access."

Concept tested: Linux file permissions (chmod octal)

Source: https://learn.microsoft.com/en-us/windows-server/administration/linux-commands/linux-chmod

Topics

#file permissions#Linux permissions#chmod

Community Discussion

No community discussion yet for this question.

Full SK0-003 Practice