CompTIA
XK0-005 · Question #1560
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--. ?
Exhibit
Options
- Achmod 755 filename.log
- Bchmod 640 filename.log
- Cchmod 740 filename.log
- Dchmod 744 filename.log
How the community answered
(42 responses)- A5% (2)
- C2% (1)
- D93% (39)
Explanation
The desired permission -rwxr--r-- breaks down as follows in octal notation: Thus, the correct command is: chmod 744 filename.log
Topics
#Linux permissions#chmod command#Octal notation#File system management
Community Discussion
No community discussion yet for this question.
