XK0-005 · Question #689
XK0-005 Question #689: Real Exam Question with Answer & Explanation
The correct answer is B: chmod 750 startup.sh. The script is missing the execute permission. Using chmod 750 startup.sh adds execute permissions for the owner and grants read and execute permissions for the group, allowing the script to run. Without execute permissions, the shell cannot run the script.
Question
A Linux systems administrator is trying to execute a particular shell script on a server. The administrator reviews the following outputs: Which of the following commands should the administrator use to allow the script to run?
Options
- Achown root
- Bchmod 750 startup.sh
- Cchmod -x startup.sh
- Dchmod 400 startup.sh
Explanation
The script is missing the execute permission. Using chmod 750 startup.sh adds execute permissions for the owner and grants read and execute permissions for the group, allowing the script to run. Without execute permissions, the shell cannot run the script.
Topics
Community Discussion
No community discussion yet for this question.