CompTIA Linux+ (XK0-005) — Question 133

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--. ?

Answer options

Correct answer: D

Explanation

The correct command is D, which sets the permissions to -rwxr--r-- (744), allowing the owner to read, write, and execute, while the group can read, and others can read. Option A (755) gives execute permissions to others, B (640) restricts group access, and C (740) denies read access to others, making them incorrect.