nerdexam
GIAC

GCFA · Question #293

John works as a professional Ethical Hacker. He has been assigned a project to test the security chmod 741 secure.c Considering the above scenario, which of the following statements are true? Each…

The correct answer is A. By the octal representation of the file access permission, John is restricting the group members to D. John is providing all rights to the owner of the file. The chmod 741 command sets file permissions using octal notation: 7 (owner=rwx), 4 (group=r--), 1 (others=--x). Choices A and D correctly describe these permissions.

Advanced Mac & Linux Forensics

Question

John works as a professional Ethical Hacker. He has been assigned a project to test the security chmod 741 secure.c Considering the above scenario, which of the following statements are true? Each correct answer represents a complete solution. Choose all that apply.

Options

  • ABy the octal representation of the file access permission, John is restricting the group members to
  • BThe textual representation of the file access permission of 741 will be -rwxr--rw-.
  • CJohn is restricting a guest to only write or execute the secure.c file.
  • DJohn is providing all rights to the owner of the file.

How the community answered

(15 responses)
  • A
    73% (11)
  • B
    7% (1)
  • C
    20% (3)

Why each option

The chmod 741 command sets file permissions using octal notation: 7 (owner=rwx), 4 (group=r--), 1 (others=--x). Choices A and D correctly describe these permissions.

ABy the octal representation of the file access permission, John is restricting the group members toCorrect

The group octet value of 4 translates to read-only (r--), meaning group members are restricted to read access only - no write or execute permissions are granted to them.

BThe textual representation of the file access permission of 741 will be -rwxr--rw-.

chmod 741 produces -rwxr----x, not -rwxr--rw-; the others field (1) grants only execute, not write, making rw- incorrect for the final triplet.

CJohn is restricting a guest to only write or execute the secure.c file.

The others (guest) octet value of 1 grants only execute permission, not write; stating 'write or execute' misrepresents what the single bit value of 1 permits.

DJohn is providing all rights to the owner of the file.Correct

The owner octet value of 7 (4+2+1) grants read, write, and execute permissions simultaneously, which constitutes all available rights for the file owner.

Concept tested: Linux file permission octal notation and chmod

Source: https://man7.org/linux/man-pages/man1/chmod.1.html

Topics

#chmod#octal permissions#Linux file permissions#access control

Community Discussion

No community discussion yet for this question.

Full GCFA Practice