Certified Cloud Security Engineer (CCSE) — Question 19
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?
Answer options
- A. passwd -d < USERNAME >
- B. passwd -D < USERNAME >
- C. passwd -I < USERNAME >
- D. passwd -L < USERNAME >
Correct answer: A
Explanation
The correct command to disable a user account password is 'passwd -d < USERNAME >', which deletes the password for the specified user. The other options, such as 'passwd -D < USERNAME >' and 'passwd -L < USERNAME >', serve different purposes, like locking the account or disabling password updates, but do not remove the password itself.