exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 18 discussion

Actual exam question from CompTIA's XK0-005
Question #: 18
Topic #: 1
[All XK0-005 Questions]

An administrator deployed a Linux server that is running a web application on port 6379/tcp.
SELinux is in enforcing mode based on organization policies.
The port is open on the firewall.
Users who are trying to connect to a local instance of the web application receive Error 13, Permission denied.
The administrator ran some commands that resulted in the following output:

Which of the following commands should be used to resolve the issue?

  • A. semanage port -d -t http_port_t -p tcp 6379
  • B. semanage port -a -t http_port_t -p tcp 6379
  • C. semanage port -a http_port_t -p top 6379
  • D. semanage port -l -t http_port_tcp 6379
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
8 months, 4 weeks ago
The semanage command is used to manage SELinux policy settings on Linux systems. In this case, the semanage port -a -t http_port_t -p tcp 6379 command is adding a new SELinux port type for the TCP protocol and port number 6379. Here's what each option does: -a: The -a option stands for "add", and it is used to add a new SELinux port type. -t http_port_t: The -t option is used to specify the SELinux type for the new port, in this case, http_port_t. -p tcp 6379: The -p option is used to specify the protocol and port number, in this case, TCP protocol and port number 6379. With this command, the SELinux policy is updated to allow the TCP protocol to listen on port number 6379 with the http_port_t type. This is useful in cases where the application requires the use of a non-standard port number for HTTP traffic.
upvoted 3 times
...
Aamm033
1 year ago
Selected Answer: B
Correct answer is B -a means Add and -t Type
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago