010-100 · Question #44
What is the command to change the password of a user?
The correct answer is D. passwd. The passwd command is the standard Linux utility used to change a user account's password.
Question
What is the command to change the password of a user?
Options
- Awpasswd
- Bgpasswd
- Cepasswd
- Dpasswd
- Epassword
How the community answered
(17 responses)- A12% (2)
- C6% (1)
- D82% (14)
Why each option
The passwd command is the standard Linux utility used to change a user account's password.
wpasswd is not a valid or existing Linux command.
gpasswd is a real Linux command, but it is used to administer /etc/group and /etc/gshadow (group passwords and membership), not individual user passwords.
epasswd is not a valid or existing Linux command.
passwd is the standard Unix/Linux command for changing user passwords, and is defined in the POSIX standard. When run by a regular user it changes their own password, and when run by root it can change the password of any specified user account. It handles interaction with the system's password database (/etc/shadow) and enforces any configured password policies.
password is not a valid Linux command; the correct command name is passwd.
Concept tested: Linux user password management with passwd command
Source: https://man7.org/linux/man-pages/man1/passwd.1.html
Topics
Community Discussion
No community discussion yet for this question.