Services and User Management Questions
Practice questions for Services and User Management topic in CompTIA Linux+. 20 questions covering this domain.
A file has the permissions displayed as `-rwxr-xr--`. What is the correct numeric (octal) representation of this permission set?
An administrator needs to change the owner of the file `/data/report.txt` to user `alice` and group `finance` simultaneously. Which command should the...
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...
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...
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...
Which command creates a new local user account named `jsmith` on a Linux system following the POSIX standard?
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?
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 ...
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...
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...
Which file on a Linux system defines the available user groups, their GIDs, and the list of member usernames?
An administrator wants to change the login shell for user `jdoe` to `/bin/zsh`. Which command should they use?
An administrator creates the shared directory `/shared/projects` and wants any new file created inside it to automatically inherit the group ownership...
An administrator needs to prevent any user (including those with blank passwords) from logging in via PAM. Which `pam_unix.so` configuration ensures e...
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?
Which file stores the encrypted password hashes for user accounts on a modern Linux system, accessible only by root?
An administrator on an Ubuntu system wants to find which installed package provides the file `/usr/bin/vim`. Which command performs this query?
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...
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...
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.