nerdexam
CompTIA

XK0-001 · Question #57

Users on a machine need to run the command run_file that requires superuser permissions in order to write to other files. Which of the following will allow that to happen?

The correct answer is D. Change run_file to a SUID command. See the full explanation below for the reasoning.

Question

Users on a machine need to run the command run_file that requires superuser permissions in order to write to other files. Which of the following will allow that to happen?

Options

  • ARun "./run_file -su root"
  • BUse the chroot command.
  • CEdit the users' ".login" files.
  • DChange run_file to a SUID command.

How the community answered

(53 responses)
  • A
    4% (2)
  • B
    8% (4)
  • C
    17% (9)
  • D
    72% (38)

Community Discussion

No community discussion yet for this question.

Full XK0-001 Practice