On an Ubuntu server, you must create a new user called "deploy" that will authenticate only with an SSH public key and must never accept a password for login. When you run the adduser command, which single option fulfills this requirement?
The --disabled-password option tells adduser to create the account without setting a usable password. The password field in /etc/shadow is marked so that password-based authentication is impossible, but the account itself is not locked, allowing other authentication mechanisms such as SSH key-based logins. Using --disabled-login would lock the account entirely until a password is set, --system would create a system account (and still disable logins by default), and --no-create-home only affects whether a home directory is created and has no impact on authentication.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why does the --disabled-password option only block password logins and not SSH key authentication?
Open an interactive chat with Bash
What is stored in the /etc/shadow file, and why does it matter for authentication?
Open an interactive chat with Bash
What are SSH public keys, and how do they enable secure authentication?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access