Skip to content

Services and User Management Questions

Practice questions for Services and User Management topic in CompTIA Linux+. 20 questions covering this domain.

20 questions6 easy10 medium4 hard
Q1
easy

A file has the permissions displayed as `-rwxr-xr--`. What is the correct numeric (octal) representation of this permission set?

Q2
easy

An administrator needs to change the owner of the file `/data/report.txt` to user `alice` and group `finance` simultaneously. Which command should the...

Q3
medium

An administrator wants to enable the `nginx` service to start automatically at boot AND start it immediately in the current session, using a single sy...

Q4
medium

An administrator wants to grant user `bob` read-only access to the file `/var/log/app.log` using an ACL, without modifying the file's traditional Unix...

Q5
medium

An administrator needs to install the `httpd` package on a RHEL 9 server using the command line. Which package manager command is correct for this sys...

Q6
easy

Which command creates a new local user account named `jsmith` on a Linux system following the POSIX standard?

Q7
medium

An administrator needs to schedule a cron job to run the script `/opt/scripts/cleanup.sh` every day at 3:30 AM. Which crontab entry is correct?

Q8
hard

An administrator needs to immediately lock the account of a terminated employee `ex_user` so they cannot log in with a password, while preserving the ...

Q9
hard

A systemd service named `myapp.service` is failing. An administrator needs to view the last 50 log lines for that specific service unit to diagnose th...

Q10
medium

An administrator uses Podman to run a containerized web server. Which command pulls the latest `nginx` image and runs it as a detached container named...

Q11
easy

Which file on a Linux system defines the available user groups, their GIDs, and the list of member usernames?

Q12
easy

An administrator wants to change the login shell for user `jdoe` to `/bin/zsh`. Which command should they use?

Q13
hard

An administrator creates the shared directory `/shared/projects` and wants any new file created inside it to automatically inherit the group ownership...

Q14
hard

An administrator needs to prevent any user (including those with blank passwords) from logging in via PAM. Which `pam_unix.so` configuration ensures e...

Q15
medium

An administrator needs to see the enable state of all service unit files (both enabled and disabled) on a systemd system. Which command provides this?

Q16
easy

Which file stores the encrypted password hashes for user accounts on a modern Linux system, accessible only by root?

Q17
medium

An administrator on an Ubuntu system wants to find which installed package provides the file `/usr/bin/vim`. Which command performs this query?

Q18
medium

An administrator needs to lower the CPU scheduling priority of an already-running process with PID 1234. Which command increases the process's nice va...

Q19
medium

An administrator uses Podman to run a container from an image and needs to map the host's port 8000 to the container's port 3000. Which `podman run` o...

Q20
medium

An administrator needs to schedule a one-time job to run the script `/opt/backup.sh` two hours from now. Which command correctly schedules this using ...

Sign in to see all 20 questions

Create a free account to browse all questions — completely free during our launch phase.