Which commands can you use to change a user’s password expiry information?
(Choose THREE correct answers)
A.
usermod
B.
passwd
C.
chattr
D.
chage
E.
chsh
Explanation:
chattr – change file attributes on a Linux file system
chsh – change login shellusermod – modify a user account
-f, –inactive INACTIVE The number of days after a password expires until the account is permanently disabled. A value of 0 disables the account as soon as the password has expired, and a value of -1 disables the feature.chage – change user password expiry information
-M, –maxdays MAX_DAYS Set the maximum number of days during which a password is valid. When MAX_DAYS plus LAST_DAY is less than the current day, the user will be required to change his/her password before being able to use his/her account. This occurrence can be planned for in advance by use of the -W option, which provides the user with advance warning. Passing the number -1 as MAX_DAYS will remove checking a passwords validity.passwd – change user password
-x, –maxdays MAX_DAYS Set the maximum number of days a password remains valid. After MAX_DAYS, the password is required to be changed.