I cant seem to pass this part on the lab. any help would be greatly appreciated.
I checked your commands and found the problem. You correctly calculated the date 90 days ahead (2025-12-25), but when setting the account expiration with chage -E, you mistakenly used an old date (2022-06-08). That caused the grader to mark the account expiration as failed because the accounts were already expired
to verify the account expiration for the users I entered chage -l consultant1,2,3 still failed this part again.
Run:
====
chage -E 2025-12-25 consultant1
chage -E 2025-12-25 consultant2
chage -E 2025-12-25 consultant3
Verify
=====
chage -l consultant1 | grep "Account expires"
You should now see the correct expiration date, and the lab will pass when re-graded
I'll try it out.
Perfect, let me know how it goes
I checked your commands and found the problem. You correctly calculated the date 90 days ahead (2025-12-25), but when setting the account expiration with chage -E, you mistakenly used an old date (2022-06-08). That caused the grader to mark the account expiration as failed because the accounts were already expired
man thanks for the reply. appreacitate the help.
Yep.
A common error my students make.
They just type the commands as written in the lab without thinking too deeply about the task (especially around date and time related tasks).
I always have to remind them that these labs were not written today but the task then need to perform is done today.
There is a reason there was a previous step that had you determine the current date + 90 days.
@dnaspliceoflife yes you are right, many learners skip this step or tend to ignore this step where in you need to determine current date + 90 days !
Sharp observatio !!
You're welcome.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.