2.1 Summarize the purpose and use of security best practices in a Linux environment.
Objective 2.1 sits in Security, which carries 21% of the Linux+ exam. The questions below are original, written from the official objective title above, and each explanation cites the CompTIA page it rests on.
Objective title verbatim from the official objectives. CompTIA exam page ↗
A worked example
Shown solved, with the whole explanation open: this is what every question here carries.
Rather than sharing the root password, an administrator wants each admin to run privileged commands under their own account with an audit trail. What is the best practice?
Correct.
Concept
Least privilege means users operate as themselves and gain extra rights only for specific tasks, which also records who performed each action.
Why A
Granting sudo rights per user lets each admin run privileged commands under their own account, leaving an audit trail.
Now you: objective 2.1 questions
No account needed. The explanation opens when you answer.
Sample question 1 of 3
To harden SSH, an administrator wants key-only access with no root password login. Which sshd_config combination enforces that?
Sample question 2 of 3
An administrator must make user jdoe's password expire after at most 90 days to meet policy. Which command sets that maximum?
Sample question 3 of 3
An administrator sets up a dedicated account for a daemon that owns its files but must never allow an interactive login. Which shell should the account have?
Full Linux+ question bank coming
We’re writing the complete bank from the official objectives right now. Leave your email and we’ll tell you when it ships, nothing else, ever.
Read the sources
These are the official pages the questions above cite. Reading them is studying the objective from the primary source, which is what the explanations point you toward anyway.