Oracle Solaris 11 Advanced System Administrator — Question 4
A user on the system has started a process, but it needs to be terminated.
The process ID was determined as follows:
pgrep userprogram
l5317
The user attempted to terminate the program as follows:
pkill 15317
This command runs without an error message, and the process continues to run.
What is the issue?
Answer options
- A. You need to run the pkill command with the process name.
- B. You need to switch to super user to kill the process.
- C. You need to run the ps command to get more information.
- D. You need to run the prstat command to get more information.
Correct answer: B
Explanation
The correct answer is B because the user may not have the necessary permissions to terminate the process, which typically requires superuser privileges. Option A is incorrect because pkill can use process IDs, option C does not address the permission issue, and option D is irrelevant to terminating the process.