XK0-006 services and user management
Services and User Management is 20% of XK0-006 and is a new domain in V8; the previous version did not have a domain with this name. It has six objectives (2.1 to 2.6): files and directories, local accounts, processes and jobs, software, systemd and containers. It is where everyday administration lives, so the questions are practical. The list below follows the objectives in the CompTIA Linux+ exam objectives.
2.1 Files and directories
Utilities include ls, cp, mv, rm, find, locate, stat, file, diff, ln and lsof. The difference between a symbolic link and a hard link is a classic test: a symlink points to a path and breaks if the target is removed, while a hard link is another name for the same inode and cannot cross filesystems. The objective also lists device types in /dev: block, character and special character devices.
2.2 Local account management
Commands to add (useradd, adduser, groupadd), modify (usermod, groupmod, chsh, passwd), delete (userdel, deluser, groupdel), lock and expire (chage, passwd, usermod) and list (id, groups, who, w, last, lastlog, getent passwd). Know the account files: /etc/passwd, /etc/shadow and /etc/group, and where new-user defaults come from (/etc/skel and /etc/profile). Be able to distinguish user, system and service accounts and their UID ranges, and know UID, GID, EUID and EGID.
2.3 Processes and jobs
Inspect with ps, top, htop, atop, pstree, pidstat, mpstat, strace and /proc/. Process states are running, blocked, sleeping, stopped and zombie. Priority is set with nice and renice. Signals worth knowing: 1 (HUP), 9 (KILL) and 15 (TERM), where TERM asks nicely and KILL cannot be caught. Job control uses &, bg, fg, jobs, Ctrl+z, Ctrl+c and nohup. Scheduling uses cron (crontab), at and anacron.
2.4 Software
Install, update and remove from repositories or source; resolve dependencies and conflicts; verify GPG signatures; exclude packages; use update-alternatives; manage third-party repositories; and use language-specific package managers (pip, cargo, npm). Sandboxed applications are mentioned too. The objective also lists basic configuration of common services: DHCP, HTTP servers such as Apache httpd and Nginx, SMTP, IMAP4, DNS and NTP/PTP.
2.5 systemd
Unit types are services, timers, mounts and targets. Manage state with start, stop, restart, reload, enable, disable, mask, unmask, status, edit and daemon-reload. Utilities include hostnamectl, timedatectl, resolvectl, sysctl and systemd-analyze. A common question: enable controls start at boot, start controls now; mask blocks both.
2.6 Containers
Runtimes include runC, Podman, containerd and Docker. Know image operations (pull, build from a Dockerfile with FROM, CMD, ENTRYPOINT and USER, tags, layers, prune), container operations (run, exec, logs, inspect, start, stop, delete, environment variables), volumes (create, map, SELinux context, overlay), container networks (bridge, host, none, macvlan, ipvlan, overlay) and privileged versus unprivileged containers.
Sample questions
Question 1. A user account must be disabled immediately without deleting the home directory or files. Which command does this?
- A. userdel -r
- B. usermod -L
- C. groupdel
- D. chsh
Show answer
Answer: B
usermod -L locks the account password, preserving files and settings. userdel -r removes the account and its home directory, groupdel removes a group, and chsh changes the login shell.
Want more questions like this? Full XK0-006 practice tests →
Question 2. A long-running process ignores a request to stop. Which signal terminates it without allowing the process to catch or ignore it?
- A. 9 (KILL)
- B. 15 (TERM)
- C. 1 (HUP)
- D. Ctrl+z
Show answer
Answer: A
Signal 9 (KILL) cannot be caught or ignored. Signal 15 (TERM) is the polite request that a process can handle, signal 1 (HUP) typically asks it to reload, and Ctrl+z suspends a job rather than ending it.
Want more questions like this? Full XK0-006 practice tests →
Question 3. A containerised web application needs to be reachable on port 8080 of the host and forward to port 80 inside the container. Which Docker or Podman option does this?
- A. -v 8080:80
- B. -e 8080:80
- C. -p 8080:80
- D. –network none
Show answer
Answer: C
Port mapping uses -p host:container, so -p 8080:80 publishes container port 80 on host port 8080. -v maps a volume, -e sets an environment variable, and –network none removes network access.
Want more questions like this? Full XK0-006 practice tests →
Next steps
Continue with security, or return to system management.