nerdexam
CompTIA

LX0-104 · Question #688

Which of the following commands can modify or set the password expiration for a user? (Choose two correct answers.)

The correct answer is A. chage D. passwd. The chage and passwd commands are standard Linux utilities used to manage and configure user password expiration settings.

Administrative Tasks

Question

Which of the following commands can modify or set the password expiration for a user? (Choose two correct answers.)

Options

  • Achage
  • Bchexpiration
  • Cshadowconfig
  • Dpasswd
  • Euserconf

How the community answered

(40 responses)
  • A
    88% (35)
  • B
    3% (1)
  • C
    3% (1)
  • E
    8% (3)

Why each option

The `chage` and `passwd` commands are standard Linux utilities used to manage and configure user password expiration settings.

AchageCorrect

The `chage` command (change age) is specifically designed to modify user password aging information, including setting the maximum password age, warning period, and account expiration dates.

Bchexpiration

`chexpiration` is not a standard Linux command used for managing password expiration.

Cshadowconfig

`shadowconfig` is not a standard Linux command for configuring shadow password settings; `/etc/shadow` is the file, but not a command.

DpasswdCorrect

The `passwd` command, primarily used for changing user passwords, can also set password aging parameters such as forcing a password change on the next login or locking/unlocking a user's account.

Euserconf

`userconf` is not a standard Linux command for user or password configuration.

Concept tested: Linux user password expiration commands

Source: https://man7.org/linux/man-pages/man1/chage.1.html

Topics

#password expiration#chage#passwd#user management

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice