nerdexam
GIAC

GSEC · Question #197

GSEC Question #197: Real Exam Question with Answer & Explanation

The correct answer is D. chmod 754 report. This question tests understanding of Linux octal permission notation and how to assign specific read/write/execute rights to owner, group, and others using chmod.

Question

You work as a Network Administrator for Net Perfect Inc. The company has a Linux-based network. You have created a folder named Report. You have made David the owner of the folder. The members of a group named JAdmin can access the folder and have Read, Write, and Execute permissions. No other user can access the folder. You want to ensure that the members of the JAdmin group do not have Write permission on the folder. Also, you want other users to have Read permission on the Report folder. Which of the following commands will you use to accomplish the task?

Options

  • Achmod 777 report
  • Bchown david.jadmin report
  • Cchmod 555 report
  • Dchmod 754 report

Explanation

This question tests understanding of Linux octal permission notation and how to assign specific read/write/execute rights to owner, group, and others using chmod.

Common mistakes.

  • A. chmod 777 grants full Read, Write, and Execute permissions to the owner, group, and all other users, which violates the requirement to remove Write from the group.
  • B. chown david.jadmin changes ownership of the folder to user david and group jadmin, but does not modify any permission bits at all.
  • C. chmod 555 sets r-x for owner, group, and others, which does remove group Write but also grants Execute permission to other users, exceeding the requirement that others should only have Read access.

Concept tested. Linux octal chmod permission assignment for owner, group, others

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

Community Discussion

No community discussion yet for this question.

Full GSEC Practice