nerdexam
CompTIA

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

System Management

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)
  • A
    15% (8)
  • B
    4% (2)
  • C
    75% (40)
  • D
    6% (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

#passwd command#account expiration#user management#password policy

Community Discussion

No community discussion yet for this question.

Full XK0-004 Practice