Which command disables the automatic password expiry for the user usera?

Prepare for the LPIC3 303 Security Test. Engage with flashcards and multiple-choice questions, complete with hints and detailed explanations. Ace your exam!

Multiple Choice

Which command disables the automatic password expiry for the user usera?

Explanation:
The command that correctly disables the automatic password expiry for the user "usera" is “chage --maxdays -1 usera”. This command sets the maximum number of days before a password must be changed to -1, which indicates that the password never expires. In the context of user account management, password expiry policies play an important role in maintaining system security. By default, many systems set a maximum number of days a password is valid in order to encourage or enforce the periodic changing of passwords. By setting the maximum days to -1, the system is instructed that this particular user will not be subject to the automatic expiration of their password, and will not need to change it unless a manual change is initiated by an administrator or the user. Other options imply varying control over password expiration, but none successfully eliminate it altogether. For instance, assigning a maximum number of days to a value like '99' does not disable password expiry; thus, the user would still be required to change their password after 99 days. The option relating to 'lastday 0' also does not aim to disable expiration but would instead pertain to a different aspect of password management. Thus, setting the maximum days to -1 is the appropriate method

The command that correctly disables the automatic password expiry for the user "usera" is “chage --maxdays -1 usera”. This command sets the maximum number of days before a password must be changed to -1, which indicates that the password never expires.

In the context of user account management, password expiry policies play an important role in maintaining system security. By default, many systems set a maximum number of days a password is valid in order to encourage or enforce the periodic changing of passwords. By setting the maximum days to -1, the system is instructed that this particular user will not be subject to the automatic expiration of their password, and will not need to change it unless a manual change is initiated by an administrator or the user.

Other options imply varying control over password expiration, but none successfully eliminate it altogether. For instance, assigning a maximum number of days to a value like '99' does not disable password expiry; thus, the user would still be required to change their password after 99 days. The option relating to 'lastday 0' also does not aim to disable expiration but would instead pertain to a different aspect of password management.

Thus, setting the maximum days to -1 is the appropriate method

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy