nerdexam
CompTIA

LX0-104 · Question #488

Which of the following commands can be used to change a user's account aging information? (Select THREE).

The correct answer is A. usermod B. passwd D. chage. The usermod, passwd, and chage commands can all be used to modify different aspects of a user's account aging information.

Administrative Tasks

Question

Which of the following commands can be used to change a user's account aging information? (Select THREE).

Options

  • Ausermod
  • Bpasswd
  • Cchattr
  • Dchage
  • Echsh

How the community answered

(29 responses)
  • A
    90% (26)
  • C
    7% (2)
  • E
    3% (1)

Why each option

The usermod, passwd, and chage commands can all be used to modify different aspects of a user's account aging information.

AusermodCorrect

The usermod command allows administrators to modify various attributes of a user account, including password aging settings like password expiry date, minimum/maximum days between changes, and warning periods.

BpasswdCorrect

The passwd command, in addition to letting users change their own password, can be used by root to set password aging parameters such as the account expiration date or password last changed date.

Cchattr

chattr is used to change file attributes on a Linux filesystem (e.g., immutable, append-only), not user account attributes.

DchageCorrect

The chage command (change age) is specifically designed and dedicated to controlling and displaying user password aging information, including setting the last change date, minimum/maximum password age, warning period, and account expiration.

Echsh

chsh is used specifically to change a user's login shell, not any password or account aging information.

Concept tested: User account aging management

Source: https://man7.org/linux/man-pages/man8/usermod.8.html

Topics

#user account aging#usermod#passwd#chage

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice