Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

EC-Council 312-40 Exam - Topic 11 Question 43 Discussion

Posted by Susy on Jun 01, 2026 at 07:06 PM

Simon recently joined a multinational company as a cloud security engineer. Due to robust security services and products provided by AWS, his organization has been using AWS cloud-based services. Simon has launched an Amazon EC2 Linux instance to deploy an application. He would like to secure Linux AMI. Which of the following command should Simon run in the EC2 instance to disable user account passwords?

Suggested Answer: B

To disable user account passwords on an Amazon EC2 Linux instance, Simon should use the command passwd -L <USERNAME>. Here's the detailed explanation:

passwd Command: The passwd command is used to update a user's authentication tokens (passwords).

-L Option: The -L option is used to lock the password of the specified user account, effectively disabling the password without deleting the user account itself.

Security Measure: Disabling passwords ensures that the user cannot authenticate using a password, thereby enhancing the security of the instance.


AWS Documentation: Securing Access to Amazon EC2 Instances

Linux man-pages: passwd(1)

Get Premium 312-40 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
17 comments · newest first
BA
Barney 2 months ago
A is what I would choose. Simple and effective.
SI
Simona 2 months ago
D is safer for security. Better to lock it.
JO
Jody 2 months ago
C seems logical. No password, no access.
CI
Ciara 2 months ago
I’m not sure, but B sounds wrong.
MA
Markus 3 months ago
A is definitely the command. Clear choice!
WI
Willow 3 months ago
I lean towards D. Locks the account, right?
OC
Octavio 3 months ago
I feel like it's C. Disabling passwords makes sense.
AD
Adela 3 months ago
I think it's A. Seems straightforward.
PA
Paola 3 months ago
No way, I thought it was B) passwd -I < USERNAME >.
SH
Shawnda 3 months ago
Definitely A) for disabling user passwords.
JI
Jin 4 months ago
Wait, can you really disable passwords like that? Sounds risky!
KI
King 4 months ago
I think it's actually C) passwd -d < USERNAME >.
KI
Kiley 4 months ago
A) passwd -D < USERNAME > is the right command!
MI
Mignon 4 months ago
I vaguely recall that "passwd -D " disables the password, but I can't remember if that's the same as locking the account.
ES
Estrella 4 months ago
I feel like "passwd -d " might be the right choice since it deletes the password, but I could be mixing it up with something else.
AL
Alesia 4 months ago
I remember practicing similar questions, and I think "passwd -L " is the one that locks the account, but I'm not 100% confident.
LU
Lucy 5 months ago
I think the command to disable user account passwords is related to locking the account, but I'm not entirely sure which one it is.
0/2000 characters

Save Cancel