CompTIA Linux+ (XK0-004) — Question 315

A Linux administrator is troubleshooting an issue with a shell script. Users in the accounting department are unable to run the script, but users in the sales department are not having issues. Users in both departments should be able to run the script. The administrator checks the permissions on the script and receives the following information:
-r-xr-xr-- joe sales script.sh
Which of the following commands should the administrator execute to resolve the problem?

Answer options

Correct answer: D

Explanation

The correct answer is D because adding execute permissions for all users will allow accounting department users to run the script. The other options either change the group ownership or modify permissions that do not provide execute access to the accounting users, which does not address the core issue of execution rights.