nerdexam
CompTIACompTIA

XK0-005 · Question #1424

XK0-005 Question #1424: Real Exam Question with Answer & Explanation

The correct answer is C: chmod 750 exam.txt. The chmod 750 exam.txt command correctly sets file permissions: owner gets full read, write, and execute (7), group gets read and execute (5), and others get no permissions (0).

System Management

Question

A Linux administrator needs to give the correct permission on a file called exam.txt. The owner needs to have full permissions to the file, the group only needs read and execute permissions, and others will not have any permissions. Which of the following commands should the administrator use to accomplish this task?

Options

  • Achmod 644 exam.txt
  • Bchmod 650 exam.txt
  • Cchmod 750 exam.txt
  • Dchmod 760 exam.txt

Explanation

The chmod 750 exam.txt command correctly sets file permissions: owner gets full read, write, and execute (7), group gets read and execute (5), and others get no permissions (0).

Common mistakes.

  • A. The chmod 644 exam.txt command would give the owner read and write (6), the group read (4), and others read (4), which is incorrect for the specified requirements.
  • B. The chmod 650 exam.txt command would give the owner read and write (6), the group read and execute (5), and others no permissions (0), which does not grant the owner full permissions.
  • D. The chmod 760 exam.txt command would give the owner full permissions (7), but the group would get read and write (6), not read and execute (5), which is incorrect.

Concept tested. Linux file permissions (chmod octal)

Reference. https://linux.die.net/man/1/chmod

Topics

#Linux#File Permissions#chmod command#Octal Permissions

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions