nerdexam
CompTIA

XK0-005 · Question #565

A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr--r--. ?

The correct answer is D. chmod 744 filename.log. The desired permission -rwxr--r-- breaks down as follows in octal notation: Thus, the correct command is: chmod 744 filename.log

System Management

Question

A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr--r--. ?

Options

  • Achmod 755 filename.log
  • Bchmod 640 filename.log
  • Cchmod 740 filename.log
  • Dchmod 744 filename.log

How the community answered

(25 responses)
  • A
    8% (2)
  • B
    12% (3)
  • C
    4% (1)
  • D
    76% (19)

Explanation

The desired permission -rwxr--r-- breaks down as follows in octal notation: Thus, the correct command is: chmod 744 filename.log

Topics

#chmod#file permissions#octal notation#Linux administration

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice