Bird
0
0

Which of the following is the correct way to set a password on a Raspberry Pi to improve security?

easy📝 Syntax Q12 of 15
Raspberry Pi - Security and Deployment
Which of the following is the correct way to set a password on a Raspberry Pi to improve security?
AUse the command <code>passwd</code> and enter a strong password
BUse the command <code>setpassword</code> with any password
CChange the password by editing <code>/etc/passwd</code> manually
DNo need to set a password if the device is offline
Step-by-Step Solution
Solution:
  1. Step 1: Identify the standard command for changing passwords

    The passwd command is the official and safe way to change passwords on Raspberry Pi.
  2. Step 2: Evaluate other options for correctness

    setpassword is not a valid command; editing /etc/passwd manually is risky and not recommended; offline devices still need passwords for security.
  3. Final Answer:

    Use the command passwd and enter a strong password -> Option A
  4. Quick Check:

    Use passwd command = Correct password setting [OK]
Quick Trick: Use the official passwd command for passwords [OK]
Common Mistakes:
MISTAKES
  • Trying to edit system files manually
  • Using non-existent commands
  • Assuming offline means no security needed

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Raspberry Pi Quizzes