XK0-004 · Question #483
Which of the following should the systems administrator use to ensure the test account is disabled after 24 hours if the account's password has expired?
The correct answer is C. passwd -e test 24. The goal is to set an inactivity period so that the test account is automatically disabled a set time after its password expires. passwd -e forces immediate password expiration on the specified account, and providing 24 sets the expiry window in hours, making the account unusable
Question
Which of the following should the systems administrator use to ensure the test account is disabled after 24 hours if the account's password has expired?
Options
- Apasswd -1 test --t 24
- Bpasswd -i 1 test
- Cpasswd -e test 24
- Dpasswd -d -l --n 1 test
How the community answered
(53 responses)- A15% (8)
- B4% (2)
- C75% (40)
- D6% (3)
Explanation
The goal is to set an inactivity period so that the test account is automatically disabled a set time after its password expires. passwd -e forces immediate password expiration on the specified account, and providing 24 sets the expiry window in hours, making the account unusable once that window passes without a password change. Option A uses -1 and --t, which are not valid passwd flags. Option B uses passwd -i 1 test, where -i sets the number of inactive days after password expiration - while conceptually related, it sets a 1-day inactive period rather than directly tying expiry to a 24-hour window as specified. Option D combines -d (delete password) and -l (lock account) with invalid flags, which would not achieve the timed disable behavior required.
Topics
Community Discussion
No community discussion yet for this question.