Courseiva

XK0-006 · topic practice

Services and User Management practice questions

Practise CompTIA Linux+ (XK0-006) Services and User Management practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Services and User Management

What the exam tests

What to know about Services and User Management

Services and User Management questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Services and User Management exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

Services and User Management questions

20 questions · select your answer, then reveal the explanation

A security analyst is investigating a potential breach and needs to examine user login history. Which THREE commands or log files provide information about user logins? (Select THREE.)

A Linux system fails to boot and displays a kernel panic immediately after the GRUB menu. The administrator needs to boot into a rescue environment. Which GRUB boot parameter should the administrator add to the kernel line?

A user cannot start the Apache web service. The command 'systemctl start httpd' returns 'Failed to start httpd.service: Unit not found.' What is the most likely cause?

Question 4mediummultiple choice
Review the full subnetting walkthrough →

A security policy requires that SSH access be allowed only from the internal management subnet 10.10.10.0/24. Which firewalld rich rule should be added?

A system administrator wants to limit the number of simultaneous logins for a user to 2. Which file and parameter should be configured?

A cron job runs a script that produces output, but the administrator does not receive the expected email notification. Which is the most likely cause?

Which TWO of the following are valid methods to enforce disk quota limits on a Linux filesystem? (Select TWO.)

A system fails to boot with a kernel panic. The administrator suspects a corrupt initramfs or missing kernel module. Which three methods could be used to recover the system? (Choose three.)

Which of the following correctly describes the purpose of the /etc/shadow file?

A Linux server is configured to allow SSH access for remote administration. The security team wants to limit SSH access to only users in the 'ssh-users' group. Which configuration should be added to /etc/ssh/sshd_config?

During boot, the system stops at a shell with limited functionality. The administrator suspects the root filesystem is corrupted. Which target should the system be booted into to perform recovery?

A user reports that they cannot access a web server at 192.168.1.100. The administrator wants to check if the server is reachable and measure round-trip time. Which command is most appropriate?

Which TWO commands can be used to lock a user account? (Choose two.)

A security audit reveals that the /etc/shadow file has permissions 0644 and is owned by root:shadow. The auditor states that this is a security risk because any local user can read password hashes. The administrator wants to fix the permissions to ensure that only root and the shadow group can read the file, and no one else can read it. Additionally, the administrator wants to set the immutable attribute on the file to prevent accidental modification. Which set of commands achieves the desired state?

A system administrator configures PAM to enforce account lockout after 3 failed login attempts. Which PAM module should be used?

Given the journalctl output for the httpd service, which of the following is the most likely cause?

Exhibit

Refer to the exhibit.
$ journalctl -u httpd
-- Logs begin at Mon 2023-10-23 09:11:22 EDT, end at Mon 2023-10-23 10:45:17 EDT. --
Oct 23 10:45:00 server httpd[1234]: (13)Permission denied: AH00035: access to /var/www/html/index.html denied (filesystem path '/var/www/html/index.html') because search permissions are missing on a component of the path

A user reports that a custom application service fails to start with a 'Permission denied' error in the logs. The service runs under the 'appuser' account. Which is the most likely cause and the first step to diagnose?

A user reports that a recently installed application fails to start. The application was installed via a shell script that added a repository and installed the package. The user runs 'ldd /usr/bin/app' and sees several 'not found' libraries. Which of the following is the MOST likely cause?

A system administrator needs to restrict SSH access to a Linux server to only users in the 'sshusers' group. Which configuration change achieves this?

The /home partition is nearly full. The administrator wants to increase the size of the home filesystem. Which action should be taken first?

Exhibit

Refer to the exhibit.
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       976M  120M  789M  14% /boot
/dev/mapper/vg-root  18G  5.2G   12G  31% /
tmpfs           1.9G     0  1.9G   0% /dev/shm
/dev/mapper/vg-home  2.0G  1.9G   68M  97% /home

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Services and User Management sessions

Start a Services and User Management only practice session

Every question in these sessions is drawn from the Services and User Management domain — nothing else.

Related practice questions

Related XK0-006 topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the XK0-006 exam test about Services and User Management?
Services and User Management questions test whether you can apply the concept in context, not just recognise a definition.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Services and User Management questions in a focused session?
Yes — the session launcher on this page draws every question from the Services and User Management domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other XK0-006 topics?
Use the topic links above to move to related areas, or go back to the XK0-006 question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the XK0-006 exam covers. They are not copied from any real exam or dump site.