What command is utilized to change a user’s password?

Prepare for the Linux Professional Institute Certification Level 1. Use flashcards and multiple choice questions, complete with hints and explanations. Enhance your understanding and get ready to ace the exam!

The command used to change a user’s password in Linux is "passwd". This command allows both users and administrators to set or change passwords for accounts. When a user runs the "passwd" command, it prompts for the current password (if changing their own password), and then it requires the user to enter a new password twice to confirm it. This is essential for maintaining account security, ensuring that users can manage their own access credentials securely.

While "chpasswd" is a command that allows a batch update of user passwords, it does not provide the interactive experience required by individual users for changing their own passwords. The "password" and "changepass" commands do not exist in standard Linux distributions, making them irrelevant to this context. Thus, "passwd" is the correct command for this task.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy