nerdexam
CompTIA

XK0-006 · Question #160

Which of the following is the best way to create a non-interactive account in a Linux system?

The correct answer is D. With the shell set to /sbin/nologin. Setting the user’s shell to /sbin/nologin prevents interactive logins while still allowing the account to exist for services or background processes, which is the standard method for creating non- interactive accounts. Exam Questions, Study Guides, Practice Tests. Lead the way…

Security Best Practices

Question

Which of the following is the best way to create a non-interactive account in a Linux system?

Options

  • AWith no elevated privileges
  • BBy using adduser with no password
  • CWith no home directory
  • DWith the shell set to /sbin/nologin

How the community answered

(26 responses)
  • A
    4% (1)
  • C
    8% (2)
  • D
    88% (23)

Explanation

Setting the user’s shell to /sbin/nologin prevents interactive logins while still allowing the account to exist for services or background processes, which is the standard method for creating non- interactive accounts. Exam Questions, Study Guides, Practice Tests. Lead the way to help you pass any IT Certification exams, 100% Pass Guaranteed or Full Refund. Especially Cisco, Microsoft, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on. Our Slogan: First Test, First Pass. Help you to pass any IT Certification exams at the first try. You can reach us at any of the email addresses listed below. Any problems about IT certification or our products, you could rely upon us, we will give you satisfactory answers in 24 hours.

Topics

#service account#nologin shell#non-interactive user#account security

Community Discussion

No community discussion yet for this question.

Full XK0-006 Practice