Which command provides detailed information about a user account, including password expiration?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command that provides detailed information about a user account, including password expiration details, is "chage". This command is specifically designed to manage user account aging information. When executed, it displays information such as the last password change date, password expiration date, and the number of days a password can be used before it must be changed.

Using "chage" is essential for system administrators to enforce password policies and manage user account security effectively. By understanding when accounts need password updates or if there are any other restrictions related to password usage, administrators can maintain compliance with security protocols.

The other options serve different purposes: "passwd" is used for changing user passwords, "userinfo" is not a standard command in Linux, and "getent" retrieves entries from administrative databases, but does not specifically focus on users' password expiration details. This makes "chage" the most appropriate command for acquiring comprehensive information related to the aging of user passwords.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy