I keep 'Failing' this lab due to some issue. The specific fail line is the "Verify the password expiration for users in the consultants group." I've confirmed that the /etc/login.defs file is to PASS_MAX_DAYS 30 and that all the consultant accounts are set to expire 90 days from the current day.
For the last step
Additionally, force the consultant1, consultant2, and consultant3 users to change their passwords on the first login.
I had initially used the chage -M 0 option to force the password change but even tried the option in the solution chage -d 0. Still 'Failing'.
Just posting here to see if it's an issue that needs to be fixed on RH's side or maybe it's something I missed.
Has anyone else had/has this issue?
@sema1987 Please reverify the step you did in the lab for that objective. You can run lab finish command and then redo this lab from start.
I CHECK EVERYTHING BUT I HAVE THE SAME PROBLEM
@FEDECW Please run lab finish command and then redo this lab from start.
I have the same issue. Sep 2025.
The instructions arent very clear on what is expected.
You are failing the grading script because the account/password expiration steps were missed.
Please set the account expiration date for consultant1, consultant2, and consultant3 using the chage -E command.
Also configure the default password expiration policy in /etc/login.defs.
Once these are set correctly, re-run the grading script and it should pass.
It looks like the grading script is failing because the account expiration date for the consultant users has not been set correctly. One common mistake is that learners copy the example date shown in the lab guide (such as 2025-08-12) instead of generating the correct date from their own system. The grading script expects the expiration date to be exactly 90 days from the current day on your system. To fix this, please run date -d "+90 days" +%F on your server to generate the correct date, and then use that value with the chage -E command for consultant1, consultant2, and consultant3. This will ensure the dates match what the grading script checks.
Please let us know if you are still facing any issues with your lab, and we will be happy to review the details with you further.
Replied as below.
@87951469 could you please help with your password configuration screenshot or your command history so that I can check and see if there is an error or misconfiguration ?
Steps taken as per lab 1- 10.
Task 6 tells us to set the password and then task 9 tells us to force change on first login.
Also you can see I executed chage -E and still I got a fail.
I'm also getting a FAIL for Verifying default password expiration of users on serverb
I'm running sudo vim /etc/login.defs and changing PASS_MAX_DAYS from 99999 to 30
If I make ONLY that one change after starting the lab then run the lab grade users-review, I should at least get a PASS for that one task, right?
You are correct that setting PASS_MAX_DAYS to 30 is required, but the grader doesn’t check this setting on its own. It runs through all the tasks together: group creation, membership, sudo access, user passwords, and expiration settings. That’s why the result still shows FAIL for this step. Once you complete the other required tasks, this check will also pass.
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.