nerdexam
LPI

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.

Security and File Permissions

Question

What is the command to change the password of a user?

Options

  • Awpasswd
  • Bgpasswd
  • Cepasswd
  • Dpasswd
  • Epassword

How the community answered

(17 responses)
  • A
    12% (2)
  • C
    6% (1)
  • D
    82% (14)

Why each option

The passwd command is the standard Linux utility used to change a user account's password.

Awpasswd

wpasswd is not a valid or existing Linux command.

Bgpasswd

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.

Cepasswd

epasswd is not a valid or existing Linux command.

DpasswdCorrect

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.

Epassword

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

#passwd command#password management#user accounts

Community Discussion

No community discussion yet for this question.

Full 010-100 Practice