CompTIA Linux+ (XK0-004) — Question 137

A user receives an access_denied error when trying to modify a file, even though the file permissions are set to 777. Which of the following commands should be used to view additional file permissions?

Answer options

Correct answer: C

Explanation

The correct answer is C, as the 'ls -z' command allows users to list the file permissions along with SELinux context, providing insights into security contexts that may affect access. Options A and B relate to SELinux settings but do not directly show file permissions, while option D is unrelated to file permission viewing.